Search Results

Search: Posts Made By: pandeesh
1,838
Posted By pandeesh
awk '{ORS=NR%3?",":"\n"}'...
awk '{ORS=NR%3?",":"\n"}' filename
1,949
Posted By pandeesh
use sed 's/^/"/ ; s/$/"/' file.txt | tr -d "\n" ...
use sed 's/^/"/ ; s/$/"/' file.txt | tr -d "\n" > newfile.txt
3,533
Posted By pandeesh
yes. If the scp command gets succeed then && part...
yes. If the scp command gets succeed then && part scp done will be written to file else failure will be written to the file.
2,081
Posted By pandeesh
Good explanation Agama!:)
Good explanation Agama!:)
4,053
Posted By pandeesh
this works: pandeeswaran@ubuntu:~$ awk -v a=$NU...
this works:
pandeeswaran@ubuntu:~$ awk -v a=$NU '$1==a' file
PSAPSR7 1562000 77000.1875 5 95
pandeeswaran@ubuntu:~$
10,724
Posted By pandeesh
nawk -F/ '{print $1$3}' log|tr -d \"
nawk -F/ '{print $1$3}' log|tr -d \"
1,498
Posted By pandeesh
if you want to filter out the last time alone...
if you want to filter out the last time alone then use:
last |head -1
pandeeswaran@ubuntu:~$ last |head -1
pandeesw pts/0 :0 Mon Jan 16 13:13 still logged in
3,015
Posted By pandeesh
hi, try this: #!/bin/sh a=`echo $1|awk...
hi,
try this:

#!/bin/sh
a=`echo $1|awk '/_delta$/{ print 1}'`
if [ $a -eq 1 ]
then
echo pass
else
echo fail
fi
3,015
Posted By pandeesh
One more alternative using awk: #!/bin/sh ...
One more alternative using awk:

#!/bin/sh
a=`echo $1|awk '/_delta/{ print 1}'`
if [ $a -eq 1 ]
then
echo pass
else
echo fail
fi
3,833
Posted By pandeesh
if you want it to store in a variable , just use...
if you want it to store in a variable , just use the below command:

max_number=`ls energy.dat.*|sort -rn|head -1`
3,833
Posted By pandeesh
Hi, Could you please explain how that command...
Hi,
Could you please explain how that command behaved without key -k specification .
I don't have unix to test it currently

Thanks
849
Posted By pandeesh
Whats the flavor of unix? ---------- Post...
Whats the flavor of unix?

---------- Post updated at 12:18 AM ---------- Previous update was at 12:13 AM ----------

just try this:

sed -n '/How are you/,+10 p' inputfile
Showing results 1 to 12 of 12

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