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 bkrike 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: Bootstrap
  • Content: Threads
  • Order by date
  1. Bootstrap

    printing lines before and after a match (revisited)

    Hi Everyone, In reference to thread thread271-1214284. awk '/pattern/{for(i=0;i<19;i++)print a[(i+NR)%19];print;for(i=0;i<26;i++){getline;print}}{a[NR%19]=$0}' input.file (Thanks Feherke. Used this many times.) I'm in need of printing the lines before /match/, but instead of a constant NR...
  2. Bootstrap

    send html mail using mailx from script

    I have a filespace monitoring script that places results to an html file. I would like to send this .html file so that it displays in the body of an email. This would be from HP11 to Outlook. I previously used mailx to send a text file, now sending the html file just shows the contents of the...
  3. Bootstrap

    Get info between ' '

    Hello. I'm need help trimming of some single quotes. Not sure how to handle this. Here's what I'm doing. file core|awk '{print $5}' > coreinfo.out This leaves me with output similar to: 'name.1.0.0' How can I further trim of the ticks? I just want the info in between the single quotes...
  4. Bootstrap

    Extracting lines from a file for given condition.

    Hi, I am trying to write a script that pull three lines from specific entries in a config file. Example: manager.cfg 10000 Service Orange 2.1 MIN=1 MAX=5 START=AUTO PATH=/user/bin/Orange 10000 Service Orange 2.0 MIN=1 MAX=8 START=MANUAL...
  5. Bootstrap

    Extracting lines from a file for given condition.

    Hi All, I am trying to extract certain lines from file.cfg. file.cfg has uniform entries such as: Name of Service A Condition=Start Min=1, MAX=10 Name of Service B Condition=Manual Min=3, Max=5 Name of Service C Condition=Start Min=0, Max=2 There are numerous entries like this. I am trying...

Part and Inventory Search

Back
Top