![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AWK syntax question | Leo_NN | UNIX for Dummies Questions & Answers | 5 | 10-28-2008 12:18 PM |
| Piping Question | mtobin1987 | High Level Programming | 2 | 04-25-2008 11:24 PM |
| question about grep, cut, and piping | dyrt | Shell Programming and Scripting | 1 | 02-28-2008 11:12 PM |
| yet another awk field syntax question | prkfriryce | Shell Programming and Scripting | 4 | 03-22-2007 01:13 PM |
| awk syntax question | hcclnoodles | Shell Programming and Scripting | 2 | 10-28-2004 12:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Piping syntax question
There are are lots of examples of piping output FROM the 'ls' command TO another command, but how does one pipe output TO the 'ls -l' command?
For example, use 'which' to find a file, then use 'ls -l' to view the permissions, groups, etc. in a single step: which <filename> | ls -l returns a long listing of the current directory, not a long listing of the filename and path returned by the 'which' command. which <filename> | ls -l - returns a file not found error on '-' Suggestions, please. Thanks! John |
|
||||
|
Thanks for that alternate solution, jlliagre!
That's better than my idea of doing the same thing with multiple commands on a single commandline with a command separator between them. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|