Search Results

Search: Posts Made By: sunny2802
1,638
Posted By sunny2802
Thanks Both Of You :) ---------- Post...
Thanks Both Of You :)

---------- Post updated at 06:32 AM ---------- Previous update was at 06:30 AM ----------

Thanks
1,638
Posted By sunny2802
Cannot find Error
Today is my first day in shell scripting.
I am not able to find error.
Need Help!

Error is :-
syntax error near unexpected token `then'
test.sh: line 50: ` if[-n "$patha"]; then...
12,574
Posted By sunny2802
How to echo output of a UNIX command (like ls -l ) using shell script.?
How do i echo the output of a unix command using shell script???


Like:
echo /etc/ ls -l
1,199
Posted By sunny2802
Worked
:b: Problem was with quotes :

echo "Enter Old domain name:"
read old
echo "Enter New domain name:"
read new

grep -rl "$old" /var/www | xargs sed -i "s/$old/$new/g"
exec bash

...
1,199
Posted By sunny2802
For multiple files.
i have 1000 of file in var/www/ how do i replace recursively without moving files from temp.
1,199
Posted By sunny2802
Shell Script (simple problem)
I want to find and replace string from files present in one directory.
user will input the string to be searched and to replace .
Here is my program but Not working


echo "Enter Old domain...
Showing results 1 to 6 of 6

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