10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file, but I want to separate the file at a particular record with comma"," in the line
This is for... (11 Replies)
Discussion started by: m6248m
2. UNIX for Dummies Questions & Answers
With awk, I am trying to change the FS "|" to "; " only from the 4th field until the end (the number of fields vary between records).
In order to get:
111|222|333|aaa; bbb; ccc
999|888|777|nnn; kkk... (1 Reply)
Discussion started by: beca123456
3. Shell Programming and Scripting
How i can use two strings as field separator..
I want to use filed separator's as < and >
shdhd ads<adsd adfs >sdfsd sfsdfsd<
Please help me in this..:wall:
thanks a lot... (3 Replies)
Discussion started by: pamu
4. Shell Programming and Scripting
I have a '|' delimited file.
My file looks like below
In the same way, each record has 164 fields. I have to insert one more field after the 85th field.
Expected output... (3 Replies)
Discussion started by: machomaddy
5. Shell Programming and Scripting
I have a flat file with fields separated by a X'1F'
i have to fetch 4th field from second line.
please help me how to achieve it.
I tried with below command and its not working.
cut -f4 -d`echo -e '\x1f'` filename.txt
I am using SunOS.
Thanks in advance. (2 Replies)
Discussion started by: rohan10k
6. Shell Programming and Scripting
I need to get fields in a line that are separated by commas, some of the fields are enclosed with double quotes, and they are supposed to be treated as a single field even if there are commas inside the quotes.
for this line, 5 fields are supposed to be extracted, they... (8 Replies)
Discussion started by: kevintse
7. Shell Programming and Scripting
I have a file that has data in it that says
The file has more line than this but i just wanted to put in a snippet to ask how I would get the highest number with time stamp into another file. So from the above... (2 Replies)
Discussion started by: pat4519
8. Shell Programming and Scripting
is there a similar parameter you can set in perl like FS in awk?
I think I've read all the tutorials on the subject, but cannot get this map split and so on thing to work.
I need to sort a file by columns, eg. first, third, fifth...
The script I need to add this column sorting is this:
use... (38 Replies)
Discussion started by: ahsog
9. Shell Programming and Scripting
I have some version of AWK that does not support regular expression field separators ( neither do I have nawk or gawk). How do I go about reading a line with the field separator as either the string "=#" or "+=".
My data looks like this:
One option is to use... (2 Replies)
Discussion started by: Abhishek Ghose
10. Shell Programming and Scripting
I have the following data in the format as shown (note: there are more than 1 blank spaces between each field and the spaces are not uniform, meaning there can be one blank space between field1 and field2 and 3 spaces between field3 and field4, in this example, # are the spaces in between... (19 Replies)
Discussion started by: ReV