help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help me to extract the part of Text file to another format


From: mjayiitk2013
Subject: Help me to extract the part of Text file to another format
Date: Sat, 12 Mar 2016 04:22:04 -0800 (PST)

Hi all,

I have a text file  40%ROL~1.TXT
<http://octave.1599824.n4.nabble.com/file/n4675435/40%25ROL%7E1.TXT>   who
has pattern of this kind

info info info
info X X X
Info
offset 0
1 344
2 43432
4 34234
3 4323
X-ray
Info
Info
offset 0
1 3441
2 43431
4 34231
3 4321
X-ray
....
....
I want to extract the second column between "offset 0" to "X-Ray" in a row
then another piece in another row
like
344 43432 34234 4323
3441 43431 34231 4321


I have similar files a lot so i want to change all in this manner
Please guide me to make a script for it




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Help-me-to-extract-the-part-of-Text-file-to-another-format-tp4675435.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]