I have a file xxx.txt containing
Is there anyway i can grep xxx.txt for strings without using punctuations.
`grep sugarsweet xxx.txt` should give output :
on 07/27/2012 – Made popular on 07/27/2012
So, I have program $a that shoves out a bunch of data, but, only the data before $z is what I want to grep for, anything after $z isn't important to the grep, but, is after the grep, so, what I need to do is something like:-
$a | sed "s/^(.*?)$z.*/\1/" | grep "$s" | $hereIsWhereIwantTheOriginallyDataBeforeISed'dItForTheGrepToNotSearchAfterThe$z.
is this possible?
I am using expect to ssh to a remote host and run a program on the remote machine which has a variable runtime. I need to wait until it finishes so I can grab the output file of this program. I am trying to use the output of grep to know when the process finishes.