10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need help to parse this xml file that has paragraphs broken in different lines and I would like to join in a single line.
I hope you can understand my explanation. Thanks for any help/direction.
The script could be in bash, awk, ruby, perl whatever please
In the output I want:... (8 Replies)
Discussion started by: Ophiuchus
2. Shell Programming and Scripting
Is there any idea on how to automate convert the paragraph in one line in a file, this will happen after OCR the documents, OCR split every paragraph. I need to join all the paragraph in one line.
#cat file.txtThe Commission on Higher Education (CHED) was created through Republic Act... (7 Replies)
Discussion started by: lxdorney
3. Shell Programming and Scripting
Could you please advise how to join multiple details lines into single row, with HEADER 1 as the record separator and comma(,) as the field separator.
HEADER 1, HEADER 2, HEADER 3,
AA1, BB1, CC1,
HEADER 1, HEADER 2,... (3 Replies)
Discussion started by: budz26
4. UNIX for Dummies Questions & Answers
Hello UNIX gurus, I am new to the world of UNIX. Hopefully I am submitting my question at the right forum. Here is my dilemma -
I have a file with contents like this -
"line1","Hello","World","Today is a wonderful day","yes it is"
"line2","Hello","World","Today is a
beautiful day","oh... (8 Replies)
Discussion started by: foolishbar
5. Shell Programming and Scripting
I have a file that contains 87 lines, each with a set of coordinates (x & y). This file looks like:
1 200.3 -0.3
2 201.7 -0.32
87 200.2 -0.314
I have another file which contains data that was taken at certain of these 87 positions. i.e.:
where the first... (1 Reply)
Discussion started by: jackiev
6. Shell Programming and Scripting
i have a input file,i have to join 2nd line into firstline and 4th line into 2nd line and so on..
for this we also consider odd no. of line.It's operate on original input file but output file should temp file.
line4Desired output should be... (9 Replies)
Discussion started by: suryanarayan
7. Shell Programming and Scripting
I have a vim outliner file like this:
Is there a way to use a script or command to remove... (7 Replies)
Discussion started by: jostber
8. Shell Programming and Scripting
I lack the utter fundamentals on how to craft an awk script.
I have hundreds of text files that were mangled by .doc format so all the lines are broken up so I need to join all of the lines of text into a single line. Normally I use vim command "ggVGJ" to join all lines but with so many... (3 Replies)
Discussion started by: n00ti
9. Shell Programming and Scripting
hi all i have sample and i need script to do this
/dev/xxx oracle test
9999 000 88 99
i need the out put like this
/dev/xxx oracle test
/dev/sap 9999 000 88 99
can any one provide me with an idea to solve this problem (8 Replies)
Discussion started by: maxim42
10. Shell Programming and Scripting
I've looked at the join command which is able to perform what I need on two rows with a common field, however if I have more than two rows I need to join all of them.
Thus I have one file with multiple rows to be joined on an index number:
3 rtext5... (5 Replies)
Discussion started by: crimper