Posted by: Saajha June 6, 2007
SHELL SCRIPT HELP...
Login in to Rate this Post:     0       ?        
That helps, thank you - but here's where the glitch remains: 'n' is fine, because I know for sure there's only one line above 'n', and that's got to come up! But 'm' needs branching -- Now, 'm' could be 1, OR it could be 2.If I simply plug in 2 to m; it works fine, given that "If I exist, list me too..." line is present. But since this is optional, some other string occupies that space during its absence. So, the only way I can think of is to Pipe one more command set with an additional grep that would give me that particular line whenever it is present, and obey the 'm' = 2 ruleset, otherwise completely ignore it. Does that make sense? :| ~@~
Read Full Discussion Thread for this article