Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: uniesh
2,053
Posted By uniesh
Rename
Just use move command 'mv' to change name of the file either with grep or sed.
4,007
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,510
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
1,677
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???
10,825
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,515
Posted By uniesh
This command gives output without space in ksh.
This command gives output without space in ksh.
3,321
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.
27,456
Posted By uniesh
that works... -24 --- in the past 24 hours +24 ...
that works...
-24 --- in the past 24 hours +24 before one day
21,889
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.
13,845
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.
22,467
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.
5,784
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,128
Posted By uniesh
cat file1|sort|uniq -c | cut -f2
cat file1|sort|uniq -c | cut -f2
Forum: Infrastructure Monitoring 03-13-2009
3,811
Posted By uniesh
cat file1|sort|uniq -c|cut -f2 >file2
cat file1|sort|uniq -c|cut -f2 >file2
27,386
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

 

Featured Tech Videos

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