![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| while read loop; scope of variables (shell) | mjd_tech | Shell Programming and Scripting | 2 | 03-03-2009 02:32 PM |
| Anyone know?: How the 'for'-loop could stop working in interactive bash shell?! | alex_5161 | UNIX for Dummies Questions & Answers | 14 | 11-11-2008 06:59 PM |
| if loop not working in BASH shell | npatwardhan | Shell Programming and Scripting | 10 | 11-10-2008 10:35 AM |
| problem with while loop in BASH shell | npatwardhan | Shell Programming and Scripting | 6 | 11-09-2008 10:57 AM |
| Shell Script to read specific lines in a file | varshanswamy | Shell Programming and Scripting | 5 | 08-22-2005 08:12 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi ,
I am currently using the while loop in bash shell, as follows. while read line do echo $line done < file.txt However, i want to use the while loop on file.txt, which will read the file with 4 lines of gap. Ex- if file.txt is a file of 100 lines, then i want to use the loop such that, it will read the file with n-lines of gap. where, n=1,2,3,4, .... This is a bit urgent. Please help me. Thanks and Regards, Jitendriya Dash. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|