Search Results

Search: Posts Made By: lightdensity
4,802
Posted By lightdensity
hi, As soon as i think, i am getting use to...
hi,

As soon as i think, i am getting use to shell script .. some or the other errors occurs.
My previous code is working fine execpt for

elif [ -n "`echo ${line} | grep...
4,802
Posted By lightdensity
hi mnmonu, I am still new to shell script,...
hi mnmonu,

I am still new to shell script, can you explain me as where to and how to use find . -type f | xargs sed -i "s/Server=127.0.0.1/Server=0.0.0.0/g" in my mentioned code..

thanks

...
4,802
Posted By lightdensity
Hi Devaraj Takhellambam, Your solution...
Hi Devaraj Takhellambam,

Your solution works fine... but I am facing new problem now... Actually I didn’t mentioned my complete input file which is

### Welcome to server ###
### Server...
4,802
Posted By lightdensity
thanks for help.. so what if i set ...
thanks for help..

so what if i set
IFS="\n\t"

than i guess, cat $FILE will give line by line..

ok!! i will try it out.. meanwhile could you check my remaining code.. and tell whether my...
4,802
Posted By lightdensity
thanks for your response..Actually i am new to...
thanks for your response..Actually i am new to shell scripting

FILE="/opt/server.conf"
NEW_FILE="/opt/new_server.conf"

IFS=""
for line in `cat ${FILE}`; do
#echo...
4,802
Posted By lightdensity
find and replace query
Hello ppl,

I am writing a script which finds multiple words match and replace it with new words.
I have server.conf file which looks like

### Welcome to server ###
### Server address and...
Showing results 1 to 6 of 6

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