Search Results

Search: Posts Made By: abhaydas
24,940
Posted By abhaydas
HI Geek's Please advise..if anything i am...
HI Geek's

Please advise..if anything i am missing
24,940
Posted By abhaydas
Won't it divert the output of below in each...
Won't it divert the output of below in each server ?

ssh -t "$2@$1" "grep -n '"$env"' $A | cut -f1 -d: | sort -u >>/tmp/a.txt"
24,940
Posted By abhaydas
Hi Folks, Need help on below code, where i...
Hi Folks,

Need help on below code, where i am trying to redirect the output of grep command in a file /tmp/a.txt for each server with this below code but it's only getting generated on server1...
24,940
Posted By abhaydas
Hi Rudic, tried executing your command in...
Hi Rudic,

tried executing your command in SOLARIS but end-up with below

bash-3.2$ sed -n '/cdc/=' abc.txt | sed 's-$-s/^/#/-' | sed -f- abc.txt
Cannot open pattern-file: -

My requirement is...
24,940
Posted By abhaydas
Thanks Rudic for your valuable comments Say...
Thanks Rudic for your valuable comments

Say in abc.txt as below i have below entries

cat abc.txt

bc
cdcggd
vdv
shhsd
cdc
skdk
cdc45ggd

and when i do grep -n cdc abc.txt
...
24,940
Posted By abhaydas
Below I am hard-coding the value of line number...
Below I am hard-coding the value of line number .How to pass it with variable ?

In my script (Solaris) say in abc.txt ,it's 3rd line I have to commentsed '3s/^/#/' abc.txt > temp && mv temp...
24,940
Posted By abhaydas
Thanks Ravinder and MadeInGermany , That helped
Thanks Ravinder and MadeInGermany , That helped
24,940
Posted By abhaydas
How to comment a specific line of a file in Solaris 10?
Hi Folks,

sed -i '3s/^/#/' abc.txt is commenting the line number 3 in LINUX

Not Working in Solaris 10 or higher

sed -i sed -i '3s/^/#/' abc.txt
sed: illegal option -- i


i have a...
Showing results 1 to 8 of 8

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