10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wrote a program using Perl to find and replace a text within a file.
The text that needs to be replaced in the file is 'sql7.0.1' with 'sqls715'. When I execute my program I get an error message:
Here is my code:
my $filename =... (6 Replies)
Discussion started by: dellanicholson
2. Shell Programming and Scripting
Hi. I need assistance with the replacing of text into a specific file via a bash script.
My bash script, once run, currently provides a menu of computer names to choose.The script copies onto my system various files, depending what computer was selected in the menu.This is working OK.
Now, I... (1 Reply)
Discussion started by: jonesn2000
3. Windows & DOS: Issues & Discussions
Lets assume I have a text file.
The text file contains multiple "#" symbols.
I want to replace all thos "#"s with a STRING using DOS/Batch
I want to add a certain TEXT to the end of each line.
How can I do this WITHOUT aid of sed, grep or anything linux related ? (1 Reply)
Discussion started by: pasc
4. Shell Programming and Scripting
I have 2 files:
Abutilon-mosaic-virus ((((Abutilon-mosaic-virus((Begomovirus((Unassigned((Geminiviridae((Unassigned))))... (2 Replies)
Discussion started by: thienxho
5. Shell Programming and Scripting
I have an html file which contains the below line in the body tagI am trying the replace hello with Hello Giridhar programatically.
<P><STRONG><FONT face="comic sans ms,cursive,sans-serif"><EM>Hello</EM></FONT></STRONG></P>
I have written the below code to... (3 Replies)
Discussion started by: giridhar276
6. Shell Programming and Scripting
I am new to unix and newbie to this forum. I need help in writing a gawk script that search and replace particular text in a flat file.
Input file text :
ZIDE_CONTROL000 100000000003869920900000300000001ISYNC 000002225489 0000000002232122 20120321 16:40:53
ZIDE_RECORD000... (5 Replies)
Discussion started by: gkausmel
7. Shell Programming and Scripting
I need a little help with a shell script. I want to be able to specify parameters so that the script searches multiple files (specified as parameters) and only modifies the file if it finds the string of text. For the files it doesn't find the string of text within, it should leave it alone.
... (4 Replies)
Discussion started by: joebaber
8. Shell Programming and Scripting
I am trying to write a shell script that will allow the typing of a value, then using that value to replace data in a text file.
I suspect I need sed.
The format of the file is:
The interaction would be something like:
Shell Prompt: "Please enter the... (9 Replies)
Discussion started by: cleanden
9. UNIX for Dummies Questions & Answers
i am very new to UNIX
plz help me in this scenario
i have two text files as below
Discipline=Electronics and communication.
Designation=CADD Design Engineer.
... (6 Replies)
Discussion started by: kkraja
10. UNIX for Dummies Questions & Answers
I have a text file with following content (3 lines)
filename : output.txt
I would like to know how we can replace 'Y' with 'N' in the 3rd line keeping 1st and 2nd lines same as what it was before.
I tried using cat output.txt... (4 Replies)
Discussion started by: santosham