![]() |
|
|
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 |
| S-286: PHP Path Translation Vulnerability | iBot | Security Advisories (RSS) | 0 | 05-09-2008 01:00 PM |
| help --translation | beijingzhzj | UNIX for Dummies Questions & Answers | 1 | 11-10-2006 07:26 PM |
| perl translation - date command | junkmail426 | Shell Programming and Scripting | 1 | 09-23-2005 08:30 PM |
| Swedish Character translation | rebelwassie | High Level Programming | 0 | 10-27-2004 12:04 PM |
| need translation? | wmosley2 | Shell Programming and Scripting | 1 | 12-15-2003 05:03 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I need translation!
Someone give me info on this script. I put all the parts I do not understand in BOLD. Please someone explain what the parts in BOLD does/mean. Thanks!
#!/bin/bash #Usage: cmdArgs.sh arg1 arg2 arg3 printf "The number of command line args is: $#\n" declare -i counter #Not strictly necessary to declare echo "The name of this script is: $0" let counter=1 for x in $@ do #Test if the argument is also a file if [[ -f $x ]] then printf "The Argument is also a file... " fi echo "Argument #$counter is: $x" let counter=$counter+1 done if [[ $# < 1 ]] then echo "You need to add some command line args" exit 1 else echo "Done!" fi exit 0 |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|