![]() |
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 |
| Executing scripts in Parallel | itsme_maverick | Shell Programming and Scripting | 2 | 06-06-2008 11:23 AM |
| Reading 5 Students names and grades using while loop???? | dlbomber1 | Shell Programming and Scripting | 1 | 11-26-2007 02:46 AM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 05:25 AM |
| Executing Shell Scripts | BuyoCat | UNIX for Dummies Questions & Answers | 1 | 09-07-2005 01:11 AM |
| executing variables in ksh scripts? | zedmelon | Shell Programming and Scripting | 3 | 08-06-2003 01:50 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
file.txt contains
------------------ sat1 1300 sat2 2400 sat3 sat4 500 I need to write a shell script that will output like the below #output sat1.ksh 1300 sat2.ksh 2400 sat3.ksh sat4.ksh 500 my try ------- #!/bin/ksh for i in `cat file.txt` do SCR_NAME=`echo $i| awk '{print $1}'` PARAM=`echo $i| awk '{print $2}'` echo "${SCR_NAME}.ksh ${PARAM}" # want to call a function here in future done can someone please advise?? ~ Last edited by konark; 11-07-2007 at 08:23 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|