Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with script

Status
Not open for further replies.

rubbersoul69

IS-IT--Management
Oct 2, 2006
10
0
0
CA
Need a script that will look at a text file. Read each line and replace any mention of the word 'bread' with 'butter'.

The 'butter' has to be a command line argument.

Having no success at all. This is a PERL script by the way :)

Thxs

 
what have you tried so far?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top