[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 ?



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