10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I try to replace a string of characters in a file (MyFile.txt) by a multiline value of the variable "Myvar":
$ cat MyFile.txt
DESCRIPTION '@TargetTable SCHEMA'
The content of Myvar:
$ echo "$Myvar"
$ (4 Replies)
Discussion started by: dae
2. Shell Programming and Scripting
I'm writing a handler for ffmpeg, and having troubles to catch some exceptions that may occour with certain files.
In order to parse for video & subtitle maps, i've had to make the raw data easier to handle, until now this worked well, but basicly i've just been lucky...
The input... (1 Reply)
Discussion started by: sea
3. UNIX for Dummies Questions & Answers
I started exploring unix recently. Now i have got a requirement like i have a input file where i am having some strings line by line (One string Might be single line or multiple lines). Now i need find these strings in another file and if its found i have to replace it with another string... (2 Replies)
Discussion started by: Sivajee
I have a string like.
I want to substitute the characters to "C" by using these locations
any clue will be great help. :wall:
thanks in advance. (2 Replies)
Discussion started by: admax
5. Shell Programming and Scripting
I am having trouble with a part of my substitute script I am using. I have it look through a file and find an exact match and then if it finds that match in the 1 file it should run the following 1 liner on 3 different files.
perl -pi -e 's/$CurrentName\s/$NewName/g' foo.cfg;
The issue that is... (8 Replies)
Discussion started by: Takau
6. UNIX for Advanced & Expert Users
I am trying to grep string with square brackets.
for example I want to grep the below string in log.txt file.
This is a test
thanks in advance. (2 Replies)
Discussion started by: sureshcisco
7. Shell Programming and Scripting
I use otool on OS X to figure out the shared libraries that a binary uses. I run this command:
otool -L /Applications/Vidnik\ 0.13.0/Vidnik.app/Contents/MacOS/Vidnik
And it returns an output similar to this:
/Applications/Vidnik 0.13.0/Vidnik.app/Contents/MacOS/Vidnik:... (10 Replies)
Discussion started by: pcwiz
8. Shell Programming and Scripting
I have a tab delimited file with two columns :
GB_45_DRB SP:0139466(mrmi sisignm)|SP:3674(fllflg_itoioh)|SP:68954779(RMTKLGF to emmdm-roomto)
GB_45_DRD SP:475928(mgmdksi rikgkg)|SP:587959(roykgl tiic-tm)|SP:0139466(mrmi sisignm)|SP:3674(fllflg_itoioh)|SP:68954779(RMTKLGF to... (4 Replies)
Discussion started by: jacks
9. Shell Programming and Scripting
Now I want to replace 'DEFGHIJ' instead of '*.B' and store the value in d. Any Idea? Can we use sed here?
The outout should be like this:
Please help.. (4 Replies)
Discussion started by: Niroj
10. Shell Programming and Scripting
with sed when I need to make a substitution inside a line containing a specific keyword, I usually use:
sed '/keyword/ s/cat/dog/g'
This will substitute "cat" with "dog" on those lines containing "keyword". Now I want to use this inside vi, for several reason that I cannot... (2 Replies)
Discussion started by: lycaon