Search Results

Search: Posts Made By: malikshahid85
1,721
Posted By malikshahid85
Below code works exactly as you want.but a.txt...
Below code works exactly as you want.but a.txt should be like
A.txt.
grectec; 10 ,53, 60, base_123 ; top09
grectec; 30 ,50, 60, base_123 ; top09
grectec; 30 ,55, 60, base_123 ; top09
grectec; 50...
Forum: Solaris 09-27-2010
12,537
Posted By malikshahid85
#!/bin/bash read -p "Please enter the minute...
#!/bin/bash
read -p "Please enter the minute (0-59):" minute
if [ "$minute" = "" ]
then
minute="*"
echo "$minute"
else
echo "$minute"
fi
14,723
Posted By malikshahid85
just execute the same code on your files.so 1st...
just execute the same code on your files.so 1st and last step will be performed.
1.

#!/bin/ksh
for i in `ls *.txt`
do
nawk '!($4=="AT" && $9>0.10 )' $i > newfile_$i.txt
done


3.

...
2,198
Posted By malikshahid85
You can use the following script ...
You can use the following script


#!/bin/ksh
integer j=1
for i in jan feb mar apr
do
infile=`ls afgcx*|grep $i`
mv $infile afgcxa.pem4-0$j.$i.rain.nc
j=j+1
done
3,590
Posted By malikshahid85
you can use this one nawk 'NR>1 {print...
you can use this one

nawk 'NR>1 {print "set\t" $1 "\tRncFeatureId\t" $2}' alarmlogs.txt
2,332
Posted By malikshahid85
for line numbers you should use sed...
for line numbers you should use


sed 's/[^0-9]//g' filename |grep -n "[0-9]"
Showing results 1 to 6 of 6

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