![]() |
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 |
| 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 |
| question about testing in shell programming | thungmail | Shell Programming and Scripting | 6 | 04-09-2008 02:04 PM |
| question about testing in shell programming | thungmail | Shell Programming and Scripting | 2 | 04-08-2008 02:29 AM |
| question about testing in shell programming | thungmail | Shell Programming and Scripting | 3 | 04-05-2008 10:29 AM |
| question about testing in shell programming | thungmail | Shell Programming and Scripting | 3 | 04-02-2008 10:46 PM |
| Question about Shell Programming | IMPORTANT | Shell Programming and Scripting | 3 | 03-26-2002 04:22 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
question about about Shell programming
Code:
1.if [ "$1" ] 2.then 3. # save the number of args and first argument in variables. 4. num_args=$# 5. id="$1" 6. echo "$id" 7. #echo "$1" > crapfile.txt 8. echo `sed 's/\*/'\*'/g' < crapfile.txt` at line 1: what is $1 how it works at line 4: what is $# at line 8: what does it try to do. I am new to shell programming. Can anyone out there explain it to me. Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|