![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic bash 'for loop' usage | Orange Stripes | Shell Programming and Scripting | 2 | 12-18-2007 04:58 PM |
| Basic OS question | catwomen | HP-UX | 4 | 09-08-2006 05:39 PM |
| basic question | karthikosu | SUN Solaris | 2 | 07-12-2006 12:07 PM |
| basic question | urwannabefriend | UNIX for Dummies Questions & Answers | 1 | 04-10-2004 02:21 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
A basic question of FOR loop
Hi,
have a basic query. Please see the below code: list="one two three" for var in $list ; do echo $var list="nolist" Done Wht if I want to print only first/ last line in the list Eg one & three Regards er_ashu |
| Forum Sponsor | ||
|
|