![]() |
|
|
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 |
| shell programming | nivas | Shell Programming and Scripting | 8 | 02-11-2008 12:06 PM |
| Aix Shell Programming | akmtcs | AIX | 1 | 12-07-2006 08:40 AM |
| shell programming | Neha Agarwal | Shell Programming and Scripting | 2 | 09-07-2005 03:23 AM |
| Shell Programming Help | mec585858 | UNIX for Dummies Questions & Answers | 4 | 12-10-2003 10:24 AM |
| Shell Programming | JWK1 | UNIX for Dummies Questions & Answers | 2 | 06-01-2001 02:31 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
need help for shell programming
My purpose was to print out all of name of students in a list.First of all,I created a file name "List" in /home/tuan/Desktop/Shell_programming as below
Code:
Tom Henry Ben Linda Marry Code:
#!/bin/sh path=/home/tuan/Desktop/Shell_programming/List for student in $path do echo "$student" done Code:
tuan@tuan:~/Desktop/Shell_programming$ chmod +x script tuan@tuan:~/Desktop/Shell_programming$ /.script tuan@tuan:~/Desktop/Shell_programming$ ./script /home/tuan/Desktop/Shell_programming/List tuan@tuan:~/Desktop/Shell_programming$ Code:
/home/tuan/Desktop/Shell_programming/List |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|