10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Looking for help,
i have input file like below and want to modify to expected output, if can without create additional file, hope can direct modify it.
have 2 thing need do.
is adding a word (testplan generation off) after ! ! IPG: Tue Aug 07 14:31:17 2018
is adding... (16 Replies)
Discussion started by: kttan
2. Shell Programming and Scripting
I have a file with many sections in it. Each section is separated by a blank line.
The first line of each section would determine if the section is duplicate or not.
if the section is duplicate then remove the entire section from the file.
below is the example of input and output.... (5 Replies)
Discussion started by: ahmedwaseem2000
3. Shell Programming and Scripting
I have a log that looks like below
sc.mng_10_Err.20131020_000000.log:NCSSC_MNG_UP_PE_TO_BE : Failed to change dvc_trx_sts from PE to BE for srvtrx: 213323141427349 dvcsfx: 1
sc.mng_4_Err.20131020_000000.log:NCSSC_MNG_UP_PE_TO_BE : Failed to change dvc_trx_sts from PE to BE for srvtrx:... (6 Replies)
Discussion started by: senormarquez
4. Shell Programming and Scripting
I want to know, if there is a way to modify one line in a text file with unix script, with out re-writing all the file.
For example, i have this file:
supose i have a command or function "modify" that... (7 Replies)
Discussion started by: Xedrox
5. Shell Programming and Scripting
I have problem with writing/adjusting a shell script.
I searched forum and unfortunately couldn't write scipt based on the information I found.
I never wtire such so it's hard for me and I do need to modify one script immediately.
case looks like:
1. 'file' that needs to be modified... (3 Replies)
Discussion started by: bipbip
6. Shell Programming and Scripting
the problem is quite simple, yet I can't find an easy solution using awk.
I need to search for a string in $3, then if I find this string, copy the line,modify $3, and copy the next 9 lines to the same file.
My problem is in the copying of the lines... Finding and modifying... (5 Replies)
Discussion started by: Teroc
7. Shell Programming and Scripting
I am beginner in Perl and trying to find the problem in a script. Kindly help me to modify the script. My script is not giving the output for the last field and followed text (LA: Language English). Input file & script as follows:
Thu Mar 19 2:34:14 EDT 2009
STC... (3 Replies)
Discussion started by: srsahu75
8. Shell Programming and Scripting
Given a text file, how do you add a line of text after a specific line number? I believe I would want to use "sed" but I am unsure of the syntax. Thank you.
Mike (5 Replies)
Discussion started by: msb65
9. Shell Programming and Scripting
I have data file which has header, data and trailer.
The problem is that always the trailer is padded with the last line data.
i want to split the trailer and bring it to next line i.e end of line.
But i dont have any specific string to identify the trailer. Only way is that all data... (3 Replies)
Discussion started by: senthil_is
10. UNIX for Dummies Questions & Answers
I have an input that looks like this:
and i need the output to looks like this:
d:/bla1/bla2/bla3/bla1_bla3.txt... (5 Replies)
Discussion started by: RoadKill