![]() |
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 file, yaml file? Extracting specific sections | Rhije | Shell Programming and Scripting | 3 | 01-22-2009 06:36 PM |
| How to view the contents of .gz file without extracting the file? | amitkhiare | Shell Programming and Scripting | 10 | 12-18-2008 05:59 AM |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-10-2007 02:25 AM |
| extracting XML file using sed | pujansrt | Shell Programming and Scripting | 7 | 06-29-2007 01:18 PM |
| [Splitting file] Extracting group of segments from one file to others | ozgurgul | Shell Programming and Scripting | 1 | 09-14-2006 12:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
extracting a row from a file
hi...
i want to extract single row from a file at a time and i don't want to specify which row to be extracted in the command. i mean i want to use a loop, so that i will fetch all the rows one after the another. i used sed -n '$count p' filename but this is not working. please give me the solution thank you |
|
||||
|
i hope this will solve your purpose
suppose you have a file named data.txt #!/bin/ksh for i in `cat data.txt` do echo $i echo " do something until the iteration is completed " done Note : refer $i for the rows in the file |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|