Search Results

Search: Posts Made By: carloskl
10,416
Posted By carloskl
ok its running thanks a lot you are the best
I do this
in=$1
out=$2
awk 'END{print RS}$0=(/^NONE/?NR==1?_:RS:FS)$0' ORS= ${in} > ${out}

I call the script:
script infile outfile

Thanks a lot!!!!!!:)
10,416
Posted By carloskl
sorry is not running
Also at the begin of the file i have a head text like:

host event login real process parent st
---------------- --------------- --------...
10,416
Posted By carloskl
Conditional concat lines awk
Hello,
I have a text file like this:
NONE FILE_Rename
frompath: /log_audit/AIX/log/current/AIXAFTPP.log
NONE FILE_Unlink ...
Showing results 1 to 3 of 3

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