10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to use awk to change a specific string in a field, if it is found, to another value. In the tab-delimited file the text in bold in $3 contains the string 23, which is always right before a ., if it is present.
I am trying to change that string to X, keeping the formatting and the... (3 Replies)
Discussion started by: cmccabe
2. Shell Programming and Scripting
I did it myself (0 Replies)
Discussion started by: apenkov
3. UNIX for Dummies Questions & Answers
New to Linux/Unix OS, my Linux version is 2010 x86_64 x86_64 x86_64 GNU/Linux
As titled, I wonder if you can help to provide a solution to find and change an specific string in a file
The file include a lots of data in following configuration but might be various in... (3 Replies)
Discussion started by: axel
4. Shell Programming and Scripting
Is there a way to change each letter of a string to the next one in the alphabet, so that a becomes b and f becomes g, and digits become one unit bigger - 4 becomes 5 and 9 becomes 0.
I want to change strings like ben123 to cfo234. (5 Replies)
Discussion started by: locoroco
5. Shell Programming and Scripting
In principle I am searching for a Perl equivalent for this sed command:
sed "/TIM_AM_ARGS=/ s/60/1440/" $EDIT_FILE > $TEMP_FILE
cp $TEMP_FILE $EDIT_FILE
I was wondering if it needs to be like this, or that there other, shorter, alternatives:
open (TIMENVFILE, "<$timenvfile") or die... (5 Replies)
Discussion started by: ejdv
6. UNIX for Dummies Questions & Answers
I want to change the order of a string using sed command . Is it possible ?
$echo "abc123xyz" | sed 's/\()*\) \(*\)/\2\1/'
$ echo "abc123xyz" |sed 's/\()*\) \(*\) \()*\)/\2\1\3/'
I want to change the string ,
Is it... (5 Replies)
Discussion started by: rajavu
7. Shell Programming and Scripting
I have my.cnf file:
log-bin = mysql-bin
relay-log = relay-bin
If there is no "skip-slave-start", I want to add it.
Or uncomment if it presents and commented.
Could someone tell me how to implement this feature in the... (1 Reply)
Discussion started by: mirusnet
8. Shell Programming and Scripting
How can I replace x first characters from a string?
I have a file with... say 10000 entries as follows:
What I want to do is change the leading "00" with for example "12"
The leading 00 can be in some files some other 1 or more digits e.g.... (2 Replies)
Discussion started by: Juha
9. Shell Programming and Scripting
I am facing one problem, can any one please suggest me the command for the same in unix. I am using Ksh.
I have a large file with the data that looks like below.
"ROTO2-2007f","_US01","9/15/2007","9/21/2007",346492,"NICK, LCD WATCH"97,1,"NAPOLITJ ","BERGER,M Z & CO INC",0.01,
... (2 Replies)
Discussion started by: mihir0011
10. Shell Programming and Scripting
If i have a directory and 10 files in it, which has string "Myapp" and i wish to change it to "Mydb" in all of the 10 files, how do i do that ?
Thanks very much
G (3 Replies)
Discussion started by: kamathg