ok, so i'm trying to match this line with sed:
Code:
Sales ID: JWM/NZF Period Ending: 03/17/2012
or this line:
Code:
Sales ID: NZF Period Ending: 03/17/2012
so if i use this:
Code:
sed -n '/Sales ID:\s\w\w\w\/'NZF'/,/Totals:/p'
it will match fine, but i would like to capture a 2 word character ID before the /.
so if i try use replace the \w\w\w with \w+ it doesnt work, and if i try to replace it with \w{2,3} it also doesnt work.
What am i doing wrong
Thanks for your help.
Joe