12

[ubuntu] math and grep

view full story
linux-howto

http://ubuntuforums.org – Hi all is there a way to use math and grep together? Heres the gist: There is a long string in a file formatted like this: $ stuff,stuff,stuff,stuff,stuff,stuff,A*stuff> where stuff is stuff I just dont care about at all, and ,A* is all I want to find in any string that starts with $ and ends with > is there some easy way to count the commas (6 of them) then look for the letter "A" Followed by the asterisk, and ending in ">"? That seems like the way to go if its possible. (Hardware)