Search Results

Search: Posts Made By: Abhinav Tyagi
12,712
Posted By Abhinav Tyagi
not working :( text may contain () or...
not working :(

text may contain () or (abcd).. or any other special character, depends totally on user.
as sed s'/$s/$r/' replaces any character with any.

Thanks
Abhinav
12,712
Posted By Abhinav Tyagi
not using vi or vim
not using vi or vim
12,712
Posted By Abhinav Tyagi
sub(s,r) not replacing special characters...
sub(s,r)

not replacing special characters like ()
script runs infinitly.

Thanks
Abhinav
12,712
Posted By Abhinav Tyagi
It's Working Now !!!:cool::b: Thanks...
It's Working Now !!!:cool::b:

Thanks SOOOOOOO MUCH
Abhinav
12,712
Posted By Abhinav Tyagi
Hi, Thanks to Franklin, my script started...
Hi,

Thanks to Franklin, my script started working !!! :)

Only one issue left :confused:

sub(s,r) replaces only one word, not even words separated by space.
I want to replace say s="apple...
12,712
Posted By Abhinav Tyagi
Thanks Franklin, I will try this. But I...
Thanks Franklin,

I will try this. But I don't know about awk command. need to study it first.

Thanks for the suggestion.
Abhinav :-)

---------- Post updated 2010-02-03 at 12:34 PM...
12,712
Posted By Abhinav Tyagi
This is the script for searching and replacing...
This is the script for searching and replacing string in dir:

for file in $(grep -l "$find" $path) #finds files with searched value
do
echo " "
echo "Modifying :...
12,712
Posted By Abhinav Tyagi
Need more info. Can some one tell me how I can...
Need more info.
Can some one tell me how I can replace text as mentioned above?

Thanks
Abhinav
12,712
Posted By Abhinav Tyagi
I understand your point but if I use my sed...
I understand your point
but if I use my sed command in
if [ grep /abc/ filename];then
if [ "$ANSWER" == "Y" ];then
#Run the Sed Command
else
#Exit the loop
fi
fi
then...
12,712
Posted By Abhinav Tyagi
Thanks for your reply, but by using grep how...
Thanks for your reply,
but by using grep how can I replace a single line or text within that line using SED command?
what would be the syntax?
12,712
Posted By Abhinav Tyagi
Search and Replace with Confirmation
Hi,

I have created a script which searches and replace the searched text from any file in directory.
I want to add a functionality where before replacing the text, script shows the line with the...
Showing results 1 to 11 of 11

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