![]() |
|
|
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 |
| passing a list of dynamic names to a "PS" command in shell script? | sachin.tendulka | Shell Programming and Scripting | 3 | 11-21-2007 04:18 AM |
| No utpmx entry: you must exec "login" from lowest level "shell" | peterpan | UNIX for Dummies Questions & Answers | 0 | 01-18-2006 04:15 AM |
| korn shell "loops & arrays" | muzica | Shell Programming and Scripting | 7 | 09-23-2004 04:02 PM |
| Find -name "*.txt" in Korn Shell Script | jwperry | Shell Programming and Scripting | 3 | 07-19-2002 01:51 PM |
| How to convert the "select" function into a "poll" function | rbolante | High Level Programming | 1 | 07-10-2001 11:49 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Korn shell "select" command
I wish to display a full "ls -l" line per selection using the korn shell "select" command.
ie : 1) -rw-rw---- 1 u22adm tbs 6144 Mar 15 10:29 y.dat 2) -rw-rw---- 1 u22adm tbs 4096 Mar 15 10:29 y.idx etc etc I can get spaces in : select f in "a a" "b b" "c c"; do > echo $f > done 1) a a 2) b b 3) c c #? I can't do the same with inline execution : select f in $( /bin/ls -l y* | sed 's/\(.*\)/"\1"/' ); do echo $f done 1) "-rw-rw---- 10) "-rw-rw---- 2) 1 11) 1 3) u22adm 12) u22adm 4) tbs 13) tbs 5) 6144 14) 4096 6) Mar 15) Mar 7) 15 16) 15 8) 10:29 17) 10:29 9) y.dat" 18) y.idx" How could I achieve this ? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|