Search Results

Search: Posts Made By: uniesh
2,428
Posted By uniesh
Rename
Just use move command 'mv' to change name of the file either with grep or sed.
4,356
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,757
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,180
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,122
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,923
Posted By uniesh
This command gives output without space in ksh.
This command gives output without space in ksh.
3,690
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,539
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,437
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,736
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,530
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,491
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,377
Posted By uniesh
cat file1|sort|uniq -c | cut -f2
cat file1|sort|uniq -c | cut -f2
Forum: Infrastructure Monitoring 03-13-2009
4,251
Posted By uniesh
cat file1|sort|uniq -c|cut -f2 >file2
cat file1|sort|uniq -c|cut -f2 >file2
27,843
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 05:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy