Posted by: Saajha June 7, 2007
SHELL SCRIPT HELP...
Login in to Rate this Post:     0       ?        
It sounds like you are asking me what if the line extends beyond 1, referring to the second condition of the statement, "If I exist, list me too; BUT make sure you list all of me even if I extend beyond one line". That actually was my question initially, but then I figured I would be able to pass that through by hiking up the value -c01-30 to say -c01-150, assuming that the line doesn't end with a 'space'; that way it continues reading the line below that as well, whenever it has to.(Not a great way to get around, but I can live with that for now !) Hope that answers your question ! HOWEVER, problem still persists :( --- I am yet to feed in a command to fulfil "If I exist, list me too". Now grep is already fed with one condition. I could pipe, say a " grep -v", if I knew the exception, which is not the case here. In other words, is there a way to pipe multiple greps (without switches) with different "search patterns"? Looking Forward ... ~@~
Read Full Discussion Thread for this article