Search Results

Search: Posts Made By: uniesh
2,528
Posted By uniesh
Rename
Just use move command 'mv' to change name of the file either with grep or sed.
4,419
Posted By uniesh
if [ `hostname` = <server> ] then echo...
if [ `hostname` = <server> ]
then
echo `date`
echo Sending file to <another server>
ff="wep_`date +%Y%m%d`"
echo "
user UN Passwd
get $ff
quit
" | ftp -n <server name>
fi


...
1,783
Posted By uniesh
0(min) 12(hrs) *(Day,1,31) *(month(1,12) 3(wed)...
0(min) 12(hrs) *(Day,1,31) *(month(1,12) 3(wed) pathof the script wer u ve stored > redirectting path
2,214
Posted By uniesh
sort -k3,3 -k7,7r input.file --- this gives ...
sort -k3,3 -k7,7r input.file --- this gives

s03 laala 5 55 65 75 195
s02 tutu 6 85 90 90 265
s04 butterkhor 6 70 70 70 210
s01 lula 6 75 65 55 195


Is this sorted???
14,236
Posted By uniesh
This will give you teh proper output For...
This will give you teh proper output

For lines ending with }

cat .txt|grep "}$"

to negate this

cat .txt | grep -v "}$"
1,953
Posted By uniesh
This command gives output without space in ksh.
This command gives output without space in ksh.
3,805
Posted By uniesh
You can do that by one by one.also you can delete...
You can do that by one by one.also you can delete a dir. provided it should be an empty dir.
use rmdir ,rm -r etc

this may help u.
28,769
Posted By uniesh
that works... -24 --- in the past 24 hours +24 ...
that works...
-24 --- in the past 24 hours +24 before one day
25,630
Posted By uniesh
find / -name name*.txt | head -1 i hope...
find / -name name*.txt | head -1


i hope this will give you the proper output.
15,985
Posted By uniesh
Sort and Awk
Use this command.

I hope u vil get the proper output.

awk '{ printf "%s/%s = %3.3f\n", $11, $5, $11/$5}' 12.txt | sort -r -k3,3n | head -30

Thank you.
30,853
Posted By uniesh
cat al.txt| cut -f2 |sed -e 's/A12/A23/g' ...
cat al.txt| cut -f2 |sed -e 's/A12/A23/g' .......... this may work i m not sure.
6,700
Posted By uniesh
uniq -c <file1 >file2 would give you the number...
uniq -c <file1 >file2 would give you the number duplicate entries with a unique entry appending to the 2nd file.


Regards,
uniesh
Forum: Infrastructure Monitoring 03-13-2009
2,444
Posted By uniesh
cat file1|sort|uniq -c | cut -f2
cat file1|sort|uniq -c | cut -f2
Forum: Infrastructure Monitoring 03-13-2009
4,342
Posted By uniesh
cat file1|sort|uniq -c|cut -f2 >file2
cat file1|sort|uniq -c|cut -f2 >file2
28,013
Posted By uniesh
vi
go to editor mode of vi and type :g/outdated/d this wil delete all lines with the worh outdated.

You can also use :1,10/outdated/d to delete lines from 1 to 10 with the word outdated.
Showing results 1 to 15 of 15

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