Computing.Net > Forums > Programming > Need help creating a script

Need help creating a script

Reply to Message Icon

Original Message
Name: linuxwannabe
Date: August 4, 2007 at 11:51:33 Pacific
Subject: Need help creating a script
OS: 5.8
CPU/Ram: 1024MB
Model/Manufacturer: SUNW, Ultra-80
Comment:

Can anyone help with using 'egrep' in a script to search for patterns of 'lost' in any file using colon (:) as a delimiter and redirecting that file to another file.


Report Offensive Message For Removal

Response Number 1
Name: Mechanix2Go
Date: August 4, 2007 at 12:53:25 Pacific
Subject: Need help creating a script
Reply: (edit)

"OS: 5.8"


uh.... right


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 2
Name: FishMonger
Date: August 4, 2007 at 14:23:20 Pacific
Subject: Need help creating a script
Reply: (edit)

M2,

The OS is Sun Solaris 5.8

------

linuxwannabe,

I'm not sure which part you need help with...the proper egrep syntax needed or how to incorporate it into a shell script.

Start by reading the man page for egrep. If you still need assistance, post your question and code in the Unix topic area and 'nails' or one of the others there will be able to answer your question.


Report Offensive Follow Up For Removal

Response Number 3
Name: ghostdog
Date: August 5, 2007 at 17:55:04 Pacific
Subject: Need help creating a script
Reply: (edit)

egrep "lost" filename.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Need help creating a script

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software