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 strongm 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: *

  1. Bootstrap

    printing lines before and after a match (revisited)

    I need the line matching Request, and the lines that make up the Reply. I should have used a better example. These are SOAP envelopes and I'll use the wikipedia example with a few changes. Request <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body>...
  2. 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...
  3. Bootstrap

    ftp script

    I do something similar with a servers.txt and all the servers setup in .netrc. I only need to ftp a single file to multiple servers. Hope this helps. #/usr/bin/ksh LIST=/your/path/servers.txt LOG=/your/path/ftp.log while read HOST do /usr/bin/ftp -iv >> $LOG <<END_FTP open $HOST put...
  4. Bootstrap

    send html mail using mailx from script

    Thanks for all the input. Ygor, that worked like a charm. Boot
  5. 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...
  6. Bootstrap

    Get info between ' '

    Thanks to all three of you. I was not using cut properly and didn't think to us tr. Thanks again. Robert
  7. 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...
  8. Bootstrap

    FTP Log File Question

    Try ftp -n $FTP_HOST >> $OUTLOG <<END_SCRIPT That's how I have mine set up. You may want to try -inv also. Hope that helps.
  9. 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...
  10. Bootstrap

    Extracting lines from a file for given condition.

    Thanks CaKiwi. I was able to use your suggestion to create a script that does excatly what I need. Thanks again. Robert
  11. Bootstrap

    Extracting lines from a file for given condition.

    FYI. I have now registered and no longer am a dreaded VISITOR!!! Robert
  12. 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