10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
OS version: RHEL 6.7
Shell : Bash
I have a file like below
$ cat pattern.txt
'T_ORDER_TNTX'... (7 Replies)
Discussion started by: kraljic
2. Shell Programming and Scripting
I have a file where every line includes four expressions with a caret in the middle (plus some other "words" or fields, always separated by spaces). I would like to extract from this file, all those lines such that each of the four expressions containing a caret appears in at least four different... (9 Replies)
Discussion started by: uncleMonty
3. Shell Programming and Scripting
Replace first 3 characters in a unix file (say replace "A&B" with "C&D") in all lines of the file. Need a sed or awk script to do this. Kindly help!
-Kumar (4 Replies)
Discussion started by: vasan2815
4. Shell Programming and Scripting
i have something like this...
blha blha blah
blha blha blah
.and so on.. its a very large file (11 Replies)
Discussion started by: vivek d r
5. Shell Programming and Scripting
I am a newbie in shell scripting and I'm trying to write a script which reads lines from a file, searching some of this lines to change a specified number. I want to replace the line for another in the file.
I have to replace multiples lines, so I have a for. Now I am trying with... (1 Reply)
Discussion started by: alex82
6. Shell Programming and Scripting
I have 8 lines containing these unique words in both files
file.dat.orig (has 1000 lines) and file.dat(has only 8 lines)
I want to replace those lines in file.dat.orig by... (1 Reply)
Discussion started by: jakSun8
7. Shell Programming and Scripting
I have two parameter blocks in a configuration file, file1.conf.
First parameter block starts with PWAT-PARM1 and
ends with END PWAT-PARM1.
Second parameter block starts with PWAT-PARM2 and
ends with END PWAT-PARM2 (please see below in file1.conf).
file1.conf is fixed width... (8 Replies)
Discussion started by: Jae
8. Shell Programming and Scripting
I've got a file full of numbers, example:
I want to replace those numbers (4 Replies)
Discussion started by: TehOne
9. Shell Programming and Scripting
I am a beginner in shell script.
I was trying to find a way to replace multiple lines of a file with different set of multiple line.
sed -n '/begin/,/end/p' < sample1.txt >test.txt
EDITED=`cat test.txt`... (2 Replies)
Discussion started by: nox
10. Shell Programming and Scripting
I am new to UNIX, so sorry if my question seem stupid to u.
well i want to replace the first character of first 30 lines of a file, only if the first character is h.
in anothe script i want to replace a particular string/character say hello/h of a file.Condition: It should... (1 Reply)
Discussion started by: abovais