Search Results

Search: Posts Made By: srinivas matta
1,300
Posted By srinivas matta
Hi Reddy, sed "/server/d" $file If...
Hi Reddy,

sed "/server/d" $file

If you want to reflect the original file

sed -i "/server/d" $file
1,022
Posted By srinivas matta
echo $a | sed "s/\./,/g"
echo $a | sed "s/\./,/g"
3,884
Posted By srinivas matta
you can google it also. grep -w
you can google it also.

grep -w
3,440
Posted By srinivas matta
Hey, you can use this also. ...
Hey,

you can use this also.

#iterating the sed command up to end
echo ...A.1.B.C.D.E.FX. | sed -e :a -e 's/\([A-Z]\{1\}\)\.\([A-Z]\{1\}\)/\1\. \2/;ta'
...A.1.B. C. D. E. FX.
1,349
Posted By srinivas matta
if the units are equl to 10 after id- then you...
if the units are equl to 10 after id- then you can use below code.


sed "s/id-........../my_datafile/g" $file > output
6,658
Posted By srinivas matta
Tommyk, adding some extra code to your code...
Tommyk,

adding some extra code to your code


df|awk '{print $5}'|grep /| egrep -v '^/$|/usr|/opt|/var/log|/home|/tmp'| sed -e :a -e 'N;s/\n/|/; ta'
2,370
Posted By srinivas matta
sed '/^[# The].*/d' $file it delete the...
sed '/^[# The].*/d' $file

it delete the lines stared with # and The.

like
File is....
#srinivas
The book
To Scrutinizer

Here it delete first two lines only

---------- Post updated at...
2,370
Posted By srinivas matta
we can use below sed command also sed '/^[#...
we can use below sed command also

sed '/^[# The].*/d' $file
Showing results 1 to 8 of 8

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