![]() |
|
|
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 loops and awk | Loriel | Shell Programming and Scripting | 1 | 10-26-2005 01:26 PM |
| two loops | big123456 | UNIX for Dummies Questions & Answers | 2 | 10-11-2005 04:08 AM |
| While Loops | vdc | UNIX for Dummies Questions & Answers | 4 | 05-10-2005 09:55 AM |
| Loops | mariner | UNIX for Advanced & Expert Users | 2 | 07-01-2004 08:50 AM |
| loops? | jonas27 | UNIX for Dummies Questions & Answers | 1 | 11-06-2001 03:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
while loops
Hi I've a file like so: Quote:
Code:
cat /tmp/file|\
while read FILE
do
while $(FILE|cut -d: -f1)=Media$i
do
#here will be some test, ex:
#if Media ID < 23
#then...
done
let i=i+1
done
The second while loops doesn't run and I don't know how to do that. Should I use sed, awk ? I don't must to use Perl? And my second question is how to do a good shell script, how to know for which case which things (sed,awk,etc...) is better to use. Yeah, it's a big questions but I really want to go further.... Best regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|