![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| exit status of command in a pipe line | topcat8 | UNIX for Dummies Questions & Answers | 10 | 10-19-2007 01:39 AM |
| How can I use pipe command ? | bintaleb | UNIX for Dummies Questions & Answers | 11 | 04-16-2007 12:16 PM |
| Pipe out ftp command to a file | lweegp | UNIX for Dummies Questions & Answers | 2 | 10-10-2005 02:40 AM |
| pipe command | zomboo | UNIX for Dummies Questions & Answers | 1 | 10-31-2004 02:04 PM |
| ret val of a command in a pipe which is NOT the last one | latze | Shell Programming and Scripting | 5 | 11-01-2002 06:32 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How to pipe command
Hi All,
I want to create a command that executes a text editor with the most recent file in the current current directory. So a good start to achieve this is : ls -lrt | cut -c55- | tail -1 which provides the name of the most recent file in a directory The problem is to pipe the result of this command with the text editor command (suppose dtpad). So my question is : does it exist a way to make something like ls -lrt | cut -c55- | tail -1 | dtpad XXXX where XXXX is a variable or a command to force the dtpad command to take as parameter the result of the pipe Thanks by advance, Nicolas. France |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Cool that works... The unix version I use is SunOS 5.5.1 (result of uname -sr) Nicolas |
| Thread Tools | |
| Display Modes | |
|
|