View Single Post
  #5   (View Single Post)  
Old 25th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
Join Date: May 2008
Location: USofA
Posts: 1,547

The best place is to would be a pastebin or a url to the d/l, can have things set to remain on display for months.

Never used it so I'm not aware of this boards attachments policy.

`expr "$lscmd" : '.*->.*'` -ne 0
means to use the output of the expr(ession) command and check if the value is not equal to zero.

the right side of the colon up until the closing back tick, ` is a regular expression to evaluate it against, I see no problem there.

I think the entire script would help.
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote