10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am having a set of date format files files where I am performing the below set of operations in the files . I Need to replace the last line value with specific date which is a pipe delimited file.
.... (19 Replies)
Discussion started by: rohit_shinez
2. Shell Programming and Scripting
I need to replace a line
with the line
Now, "xxxxxxxx" in the above line is some unknown string and $1 is a parameter. I want the content of $1 to be replaced with "xxxxxxxx".
Kindly help me how to do this in the shell scripting. (5 Replies)
Discussion started by: ddeeps2610
3. Shell Programming and Scripting
I have a file which has a list in it
What I want to do is search this list and replace people with humans do the list looks like this:
I think i use something like this....
if cat /list.txt | grep -q 'people' ; then (9 Replies)
Discussion started by: digitalviking
4. Shell Programming and Scripting
As mentioned in the title I have two text files and I would like to replace line number 5 of file #1 with line number 4 of file #2
0.723 (12 Replies)
Discussion started by: f_o_555
5. UNIX for Dummies Questions & Answers
I have a set of files named S5_SK1.chr01 S5_SK1.chr02 S5_SK1.chr03 ..... and the first line of these files is >SK1.chr01 >SK1.chr02 >SK1.chr03 ..... Can anyone suggest how I can change the first line of all these files with the filename itself? So my expected output for the first lines of... (14 Replies)
Discussion started by: pawannoel
6. Shell Programming and Scripting
Hi Masters ,
I have a file whose header is like
There is a space between 1 and S ,my req is to chng the space to T
I tried echo `head -1 CDCZECM8CZCM000000881` | sed 's/ /T/'
it works ,but how can I modify in... (5 Replies)
Discussion started by: Pratik4891
7. Shell Programming and Scripting
I have a csv file and will like to replace the last character of each line in the file with Z (20 Replies)
Discussion started by: 123script
8. Shell Programming and Scripting
I have a requirement where using a script I grep a file for string (KSG/Password in below ) , get the next line which is the password and I need replace the whole line of unknown special charecters (encrypted password) with another line as given below .
As in below i need to get... (12 Replies)
Discussion started by: malavm
9. Shell Programming and Scripting
Apologies if this has been asked before, but I searched and was not able to find an answer. It's probably a simple question to answer for those of you with some experience, though...
I have a relatively long string where tokens are separated by the colon (':') character. Let's say the... (10 Replies)
Discussion started by: johnemb
10. UNIX for Advanced & Expert Users
hey guys, how do i replace only a line within a file without messing up the rest of the contents of the file?
see, if possible can you guys give me a straight forward way to do this. i dont want a complex command. what i mean is i know i can accomplish this by using sed, well, i think i can,... (3 Replies)
Discussion started by: Terrible