Search Results

Search: Posts Made By: pandeesh
5,535
Posted By pandeesh
awk '{ORS=NR%3?",":"\n"}'...
awk '{ORS=NR%3?",":"\n"}' filename
3,273
Posted By pandeesh
use sed 's/^/"/ ; s/$/"/' file.txt | tr -d "\n" ...
use sed 's/^/"/ ; s/$/"/' file.txt | tr -d "\n" > newfile.txt
7,866
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,952
Posted By pandeesh
Good explanation Agama!:)
Good explanation Agama!:)
5,069
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:~$
42,917
Posted By pandeesh
nawk -F/ '{print $1$3}' log|tr -d \"
nawk -F/ '{print $1$3}' log|tr -d \"
2,379
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,985
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
8,625
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
8,625
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,985
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
1,313
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 11:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy