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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.