10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to read a value from a mapping file and would need to replace the value based on country parameter
If the country is in nz,usa,uk then
like that... (10 Replies)
Discussion started by: Master_Mind
2. Shell Programming and Scripting
I am having a script file where in getting input parameter as string. I need to assign the variable but not able to achieve
I am getting but should get string_<input_value>_string2
string_ (1 Reply)
Discussion started by: rohit_shinez
3. Shell Programming and Scripting
Hi I need help with writing a script to change a string in a file.
The script needs to read an input list (list.txt) file line by line searching for that string in a text.file. Once the string is found the last few words in the string should be replaced.
eg list.txt will contain
hello my... (6 Replies)
Discussion started by: sudobash
Hi I have a CommonTemplateStop.template file . Inside the file i need to replace the variables DepName and CompInsName with the values(Trade and TradeIns) specified in the script. I have written the below .sh script in linux server which will read the .template file and has to replace the 2... (8 Replies)
Discussion started by: samrat dutta
5. Shell Programming and Scripting
I was having the following issue
hello1, my name is unix.com. I am awesome. Hope you know this, hello2!
Required Output (8 Replies)
Discussion started by: jacobs.smith
6. Shell Programming and Scripting
I need help to finish this script please.
I have an input file with all the IP address to names formated like so in a txt file
addnsr2sec 184.108.40.206... (12 Replies)
Discussion started by: richsark
7. Shell Programming and Scripting
Trying to create a script/executable to replace "abc" text string in "myfile.htm" with input from a pop-up field. For example, launch this thing and a prompt is popped up asking the user to input what "abc" should be replaced with, then it inserts what the user inputs in place of abc in the... (3 Replies)
Discussion started by: mike909
8. Shell Programming and Scripting
I wish to replace values of specific parameters in an input file for batch runs of a java code. It's essentially a nested for-loop sorta like this:
valuearray1 contains values for param1
valuearray2 contains values for param2
for (all values in valuearray1)
go into specific position in... (2 Replies)
Discussion started by: daphantomica
9. UNIX for Dummies Questions & Answers
i want to create a script that will search and replace the values inside a particular file. i have 5 files that i need to change some values inside and i don't want to use vi to edit these files. All the inputted values on the script below will be passed into the files.
echo... (3 Replies)
Discussion started by: tungaw2004
10. Shell Programming and Scripting
here is not a full version script, just post a sample.
read -p 'Addr: ' addr
sed 's/<Address>/'"$addr"'/' pf.mod>$1
If the input string include `/', sed will return error message. I know that s/// can be replaced with s::: or s!!!, etc, but the input var can accept... (4 Replies)
Discussion started by: r2007