Search Results

Search: Posts Made By: smenago
2,828
Posted By Akshay Hegde
Try akshay@Aix:/tmp$ cat parse.awk ...
Try

akshay@Aix:/tmp$ cat parse.awk
FNR==NR{
a[$1]= $1 in a ? a[$1] SUBSEP $2 : $2
next
}
{
for( i in a )
{
if( $5 == "sftp-server["i"]:" && /closed/ && /user/ && !/ORG/ && !/LE/ )...
1,510
Posted By Corona688
Try -v st=12345
Try -v st=12345
2,190
Posted By MadeInGermany
There are two mistakes. 1. You must also set...
There are two mistakes.
1. You must also set OFS to / otherwise the modification of $5, causing a rebuild of $0, uses the default OFS (output field separator is a space).
2. There must be a space...
2,190
Posted By Akshay Hegde
Looks like variable you properly not defined ...
Looks like variable you properly not defined

see difference here in example :

$ awk -vx=1,y=2 'BEGIN{print y}'

$ awk -vx=1,y=2 'BEGIN{print x}'
1,y=2

$ awk -vx=1 -vy=2 'BEGIN{print x,y}'...
2,190
Posted By Chubler_XL
Not quite sure what your requirements are without...
Not quite sure what your requirements are without seeing an example input file and output file, but this might get you along the way:

nawk -F/ -v dt=$(/usr/local/bin/date +%Y%m%d) '
/cana/ {...
1,882
Posted By Scrutinizer
Try: sed "\$a...
Try: sed "\$a...
7,733
Posted By methyl
There are too many double quotes on this line....
There are too many double quotes on this line. You cannot nest double quotes. As it stands the whole meaning of the line becomes altered and the Shell tries to execute a string between the backticks....
Showing results 1 to 7 of 7

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