![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parsing text from file | ndnkyd | Shell Programming and Scripting | 0 | 04-02-2008 01:42 AM |
| Text File Parsing | Djlethal | Shell Programming and Scripting | 2 | 02-27-2008 03:31 AM |
| Parsing a line in Shell Script | unishiva | Shell Programming and Scripting | 3 | 11-01-2007 04:30 PM |
| Plz Help To convert xml file to text file using bourn shell scripts | ram2s2001 | Shell Programming and Scripting | 0 | 11-09-2005 09:56 AM |
| Converting Text File into XML using Unix Shell Scripts | Laud12345 | Shell Programming and Scripting | 10 | 02-16-2005 01:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi Gurus!
I wonder if anyone can help me, I'm sure you guys can. I have a text file which contains a lot of data on the one line as follows: Code:
$[{"_field0":"blah","_field1":"blah","_field2":"blah","_field3":"blah","field4":"blah","field5":blah,"field5":blah},{"html":1,"type":"bingo","bingo":"Results <span class='b'>1<\/span>-<span class='b'>50<\/span> of <span class='b'>497<\/span> for <span class='b'>match<\/span>"},{"id":"2549425,12087370,6013917","ids":62,"type":"record","name":"blah - smashing"},{"id":"4736260,7981901,5614559","ids":52,"type":"record","name":"blah - sorry"}
Any help would be greatly appreciated! ![]() th3g0bl1n |
|
||||
|
This is what I have;
Code:
sed 's/^.*\"name\":\"//g;s/\".*$//' input > output blash - sorry Any ideas how I can get it to read the whole line? Perhaps I need to break it up first? G0bl1n |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|