[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] When a script is necessary, and when a piped command is sufficient ?
- Subject: [ale] When a script is necessary, and when a piped command is sufficient ?
- From: esoteric at 3times25.net (Geoffrey)
- Date: Wed, 15 Mar 2006 09:55:16 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
Courtney Thomas wrote:
> I've been trying to assemble a sequence of actions, e.g. find, sort, rm,
> etc.... to filter a directory of files and have not yet succeeded.
>
> In particular I need to execute, in the following sequence;
>
> 1-find or ls
> 2-sort [by file date]
> 3-rm [interactively]
>
> I'd prefer a prompted command sequence rather than a script.
>
> For example...
>
> ls -l | sort +5
ls -l |sort +5 |xargs rm -i
--
Until later, Geoffrey