[Techtalk] copying similar files in one command
Conor Daly
conor.daly at oceanfree.net
Mon Nov 1 22:00:59 EST 2004
On Sun, Oct 31, 2004 at 10:27:28AM -0600 or so it is rumoured hereabouts,
Kathryn Hogg thought:
>
> percila orphan said:
> > /home/ed/ ls -l | grep "ed"
>
> PS. Your ls command above could easily have been done with
> ls -l *ed*
There's one caveat here. If there are too many files of the form *ed*, ls
will fail with 'too many arguments'. This happens to us at work with an
'incoming' directory for data files if the sweeper fails. Akkana's
'find...' command will work happily in this circumstance.
Conor
--
Conor Daly <conor.daly at oceanfree.net>
Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
10:57am up 18:49, 0 users, load average: 0.00, 0.18, 0.24
Hobbiton.cod.ie
10:56:59 up 18:49, 1 user, load average: 0.00, 0.05, 0.06
More information about the Techtalk
mailing list