![]() |
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 |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to extract columns from a text file | ihot | Shell Programming and Scripting | 16 | 05-05-2008 11:33 PM |
| extract text b/w two delimiters | dowsed4u8 | UNIX for Advanced & Expert Users | 6 | 01-18-2008 05:48 PM |
| Extract text in 2 columns of output file. | Danish Shakil | Shell Programming and Scripting | 2 | 10-19-2007 10:03 AM |
| How to extract text from xml file | chrisf | Shell Programming and Scripting | 3 | 09-01-2007 02:25 PM |
| How to extract data from a text file | negixx | Shell Programming and Scripting | 1 | 07-19-2005 09:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
needa c program to extract text between two delimiters from some text file.
and then storing them in to diffrent variables ? text file like 0: abc.txt ========= aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass ============== Last edited by kukretiabhi13; 01-21-2008 at 01:00 PM.. Reason: clearity |
|
||||
|
Quote:
![]() I have a question as I am unable to follow your thread. Do you want each of the values separated by the pipe symbol "|" to be stored into a separate variable and what do you want to do with them afterwards? |
|
||||
|
This is what i actually need :
eg: aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass my c program should read the first line and then store aaaaaaa in some variable x 11111111111 in some variable y and so on ....... program will identify the strings that are written b/w two delimiters i.e '|' store in variable x till i reach the next delimiter than to the next delimiter is stored in variable y. |
|
||||
|
Need The Pgm
Hi can u post the program ...so that i can get an idea of ur implementation
thanks |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|