10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a question regarding text substitution.
I have a file that contains a lot of text.
Some of the text is separated with a \n like:
So there are both actual newlines and 'used to be newlines' in the text.
tr "\n" ","
or... (5 Replies)
Discussion started by: JaapSchuurman
2. Shell Programming and Scripting
I have a large CSV file that contains values all on the same column, and in one very long row (e.g. no line breaks till end, with all data values separated by a comma).
The file has two types of data for the values. One begins with the letters rs and some numbers. The other begins... (4 Replies)
Discussion started by: macurdy
3. Shell Programming and Scripting
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
file name, first path, second... (7 Replies)
Discussion started by: ketanraut
4. Shell Programming and Scripting
got a file with this structure:
33274 171030 02/29/2012 37897 P_GEH 2012-02-29 10:31:26
33275 171049 02/29/2012 38132 P_GEH 2012-02-29 10:35:27
33276 171058 02/29/2012 38515 P_GEH 2012-02-29 10:43:26
33277 170748 02/29/2012 40685 P_KOM ... (3 Replies)
Discussion started by: krecik28
5. UNIX for Dummies Questions & Answers
I have a text file that has three columns. But at the end of the text file, there are trailing lines that have missing second and third columns:
4 0.04972604 KLHL28
4 0.0497332 CSTB
4 0.04979822 AIF1
4 0.04983331 DECR2
4 0.04990344 KATNB1
How can I remove the trailing... (3 Replies)
Discussion started by: evelibertine
6. UNIX for Dummies Questions & Answers
I have a file that contains data that I am working with, sometimes this file has a very long string of text that messes with an awk command in a script i am trying to build. I would like to cut this string of text out of a file and then redirect everything except that string to a new... (5 Replies)
Discussion started by: deepslp
7. UNIX for Dummies Questions & Answers
I have a file that lists a few hundred values.
I have a 2nd file with a few thousand lines. I need to remove every line from the 2nd file that contains any of the values listed in first file.
Example of strings to delete:
line1 *abca* end of... (1 Reply)
Discussion started by: upstate_boy
8. Shell Programming and Scripting
I would like to know how to remove text from a line in a file.
The 4 sets of numbers are not static ie they change on each line in each different file so if anyone can help that would be great.
Jeremy (10 Replies)
Discussion started by: outthere_3
9. Shell Programming and Scripting
Here is my problem I'm hoping you guru's can help me figure out. I have a text file that contains comma delimited columns. What I'm looking to do is see if the 24th column on each row in the file contains a value (not null), and then write/append that line to a different file.
I've been... (4 Replies)
Discussion started by: WABonnett
10. UNIX for Dummies Questions & Answers
I have a file which looks like this
basically 14 characters then a comma, three characters, then a comma then 10 characters. We are uploading this file to our mainframe and they want the commas removed, so it... (6 Replies)
Discussion started by: hcclnoodles