Search Results

Search: Posts Made By: lupin..the..3rd
1,739
Posted By rdrtx1
awk '$1=$1' RS="\n^ *$\n" infile
awk '$1=$1' RS="\n^ *$\n" infile
1,739
Posted By rdrtx1
awk '$1=$1' RS= infile
awk '$1=$1' RS= infile
1,739
Posted By RudiC
Try RS="" and / or RS="\n\n".
Try RS="" and / or RS="\n\n".
1,739
Posted By RudiC
How about awk '$1=$1' OFS=" " RS= file ...
How about
awk '$1=$1' OFS=" " RS= file
7LKZB88901 DC090SDFKGHSDD REJECT REASON DDP/09/Q SCC/GO/SEX.M.DNY/ALASKA/ CONTACT THE DENYING AGENCY For the following DUPLICATE
7LKZB88902 DC090RDFK1HSDD...
4,260
Posted By Don Cragun
If your input files contain 12,000 messages, your...
If your input files contain 12,000 messages, your script is invoking awk 12,000 times; not 2 times!

In your sample input in the first message in this thread you showed that the 1st line in your...
4,260
Posted By Don Cragun
Hi jethro, Using the script you provided: awk...
Hi jethro,
Using the script you provided:
awk 'NR>1 {print > FILENAME"."(NR-1)}' RS="--dump[^\n]*" fileon Mac OS X I get:
awk: syntax error at source line 1
context is
NR>1 {print > >>> ...
4,260
Posted By Don Cragun
It is hard to get csplit (and split) to drop the...
It is hard to get csplit (and split) to drop the delimiter lines.

The awk script jethro provided is giving me some files just containing an empty line and some files just containing "dump". And,...
4,260
Posted By jethrow
awk 'NR>1 {print > (OFN=FILENAME"."(NR-1));...
awk 'NR>1 {print > (OFN=FILENAME"."(NR-1)); close(OFN)}' RS="--dump[^\n]*" file

EDIT:
... implemented this above ...
4,260
Posted By cjcox
man csplit ?
man csplit ?
Forum: HP-UX 12-06-2013
5,128
Posted By MadeInGermany
In HP-UX 11.23 there is a build directory...
In HP-UX 11.23 there is a build directory /usr/newconfig/etc/mail
Forum: IP Networking 10-21-2013
3,285
Posted By bartus11
Take a look at: Chapter 4 DNS Configuration Types...
Take a look at: Chapter 4 DNS Configuration Types (http://www.zytrax.com/books/dns/ch4/#forwarding)
1,103
Posted By Yoda
Use -r option with mailx:- echo "Testing From"...
Use -r option with mailx:-
echo "Testing From" | mailx -r "webmaster@domain.com" -s "Subject" user@domain.com
Forum: Red Hat 10-12-2012
1,678
Posted By thmnetwork
If you would rather not modify syslog...
If you would rather not modify syslog configuration for fear of losing other messages, since it's coming from the kernel you can use the loglevel kernel parameter at boot time (setting it to...
Forum: Red Hat 10-12-2012
1,678
Posted By gull04
Hi Lupin, To do this you will have to edit...
Hi Lupin,

To do this you will have to edit the "/etc/syslog.conf" file, this determines where the system messages go.

In RedHat you will find the information if you use;

man syslog
man...
1,073
Posted By Scrutinizer
Try case: case $MONTH in 1|4|7|10)...
Try case:
case $MONTH in
1|4|7|10) do_something ;;
*) do a different thing
esac
1,073
Posted By Scott
An option: $ cat DateTest for month in 1 2...
An option:

$ cat DateTest
for month in 1 2 3 4 5 6 7 8 9 10 11 12; do
if [ $((month%3-1)) -eq 0 ]; then
echo Month is $month
fi
done
$ ./DateTest
Month is 1
Month is 4
Month is 7...
30,564
Posted By Corona688
I fear you are faced with the problem of stopping...
I fear you are faced with the problem of stopping root from being root, but blacklists appear to be possible using aliases, though they're not called blacklists because you can't say "permit...
33,458
Posted By neutronscott
since no other replies yet.. it's been a...
since no other replies yet..

it's been a long time since i've wrote in tcl, but the easiest solution would be to put a backslash before these special characters.
example:


send "a01 login...
2,550
Posted By jgt
Remove procmail as the default delivery in the...
Remove procmail as the default delivery in the sendmail configuration.
Add 4 entries to the alias file so that:

process1: |/usr/bin/SendtoProcmail
process2: |/usr/bin/SendtoProcmail1 (if the...
3,611
Posted By jgt
xrdp (http://www.xrdp.org/)
xrdp (http://www.xrdp.org/)
10,221
Posted By Corona688
You should put a 'close' in there unless you want...
You should put a 'close' in there unless you want to rapidly run into awk's maximum open file limit. but then you'd need nawk.
10,221
Posted By guruprasadpr
Hi awk '/Paragraph...
Hi

awk '/Paragraph start/{if(NR!=1){for(i=0;i<j;i++)print a[i]>"file"k;j=0;k++;}a[j++]=$0;next}{a[j++]=$0;}END{for(i=0;i<j;i++)print a[i]>"file"k}' i=0 k=1 file

You will have output files...
25,339
Posted By TL56
I found this command and it worked for me: sed...
I found this command and it worked for me:
sed '/^ *$/d'

Thank you very much for responding and your assistance.
Showing results 1 to 23 of 23

 
All times are GMT -4. The time now is 09:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy