Article 5726W Grep Negative Values that Include '$'

Grep Negative Values that Include '$'

by
High_Timelady
from LinuxQuestions.org on (#5726W)
So I'm trying to use grep to isolate negative monetary values from a file but nothing I've tried has worked. Ex.) -$42,345
I've tried: grep '-$*' grep '-' grep -- '-*' grep -- '\-$*' grep -F '\-$*' but keep getting invalid option returns or just a blank next line. The file is chart-like and all monetary values are in the second column. Any help is appreciated.latest?d=yIl2AUoC8zA latest?i=O1ghb-3VlI0:Fa_afel3o-4:F7zBnMy latest?i=O1ghb-3VlI0:Fa_afel3o-4:V_sGLiP latest?d=qj6IDK7rITs latest?i=O1ghb-3VlI0:Fa_afel3o-4:gIN9vFwO1ghb-3VlI0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments