![]() |
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 |
| Redirect Output Multi-Process | djodjo | High Level Programming | 3 | 03-17-2008 05:55 PM |
| problem parsing process-output | victorin | Shell Programming and Scripting | 3 | 07-25-2006 05:31 AM |
| Can ps just output the process name? | blckleprd | Shell Programming and Scripting | 4 | 06-07-2006 11:46 PM |
| Opening output file while still in process | monkfan | UNIX for Dummies Questions & Answers | 4 | 03-02-2006 04:35 AM |
| Retreive process output | nhatch | UNIX for Advanced & Expert Users | 2 | 10-16-2003 10:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using ls output for other process
Hello,
Just to set the tone: I am a complete UNIX noob (i guess you see that excuse popping up frequently here but anyhow) Now here's my bloody simple problem which needs to be quite urgently resolved: I have a number of files in a directory, for which the ones, relevant for executing a subsequent action, can be easily gathered using an ls -1 | cut -c1-5 command. What I want to do know is plug in each filename resulting out of this ls command into another command. Hence, I need to temporarily store each name into a variable, execute the other command by using that variable and then move on to the next one untill the list is finished. PS: if someone knows a fool proof unix guide on the web which enables even an amoebe to learn unix, feel free to post the link. Thanks. |
![]() |
| Bookmarks |
| Tags |
| backtick, command substitution |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|