![]() |
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 |
| Extract particular text | Shell_Learner | Shell Programming and Scripting | 4 | 04-24-2009 05:51 AM |
| c program to extract text between two delimiters from some text file | kukretiabhi13 | High Level Programming | 7 | 12-03-2008 06:29 PM |
| Using awk to extract text | Davizzle | Shell Programming and Scripting | 5 | 08-15-2008 01:09 AM |
| Sorting rules on a text section | Indalecio | Shell Programming and Scripting | 4 | 12-05-2006 05:25 AM |
| grep multiple text files in folder into 1 text file? | coppertone | UNIX for Dummies Questions & Answers | 7 | 08-23-2002 02:50 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how can i extract text section via grep
hi, i have a very long text file. i need to extract with grep command a certain part.
for example text file include 1ooo rows: 1.... 2... 3... . . . 1000 i want to view with grep only rows 50-100. any ideas will be appreciated thanks... |
|
||||
|
thanks mate, in order to use your solution i need another piece of the puzzle:
lets say that i know the first row number (e.g. 50) but i need to find out the number of the bigger one. the only clue i have is that row 100 is starting with certain string (x). between 50-100 x appears only on the 100 row, though after 100 it appears on various rows. do you have an idea how can i locate the number of that row? ----------------------------------------------------------------------- BTW i need this section for manipulating it in my bash script... if you can help it will be highly appreciated. |
|
||||
|
thanks guys
thanks folks but it seems the it just opens the file (as cat).
hoped it will retrieve the row's number. thanks... |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|