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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cden2
  • Order by date
  1. cden2

    Need help replacing a work in a file with a variable plus a word.

    Thanks!!! that worked. It brought about an issue. lastfile="$( ls -1tr /rae/tmp/reportmounts.*.* | head -1 )" works, but if it is the first file being put in the directory, it says no $lastfile exist. So I am trying to create an if statement that will check else just use the existing file...
  2. cden2

    Need help replacing a work in a file with a variable plus a word.

    PDreyer!!! Thanks for your help it works. I am in the final stage of the script. Question 1: The output is created in a file called reportmounts which is appended with the DATE.TIME. I want to email the latest DATE.TIME stamped file content view email to an address. How do I script this...
  3. cden2

    Need help replacing a work in a file with a variable plus a word.

    I am a new to scripting. I am working with a script to replace the word 'name' in a file with the name of the server. I am trying pass a variable in a search and replace command using sed. It works now, but only replaces the word 'name' with the '${SERVER}: name' and not the actual hostname...

Part and Inventory Search

Back
Top