On Sunday 29 January 2006 03:27, Bill Campbell wrote:
On Sat, Jan 28, 2006, Kirk Strauser wrote:
On Friday 27 January 2006 17:52, Paul Schmehl wrote:
for files in *.*
do
rm $files
done
Don't ever, *EVER* blindly unlink glob expansions. It's bad for you.
Instead, use something
On Friday 27 January 2006 17:52, Paul Schmehl wrote:
for files in *.*
do
rm $files
done
Don't ever, *EVER* blindly unlink glob expansions. It's bad for you.
Instead, use something like:
find . -name 'sess.*' -delete
--
Kirk Strauser
pgpepCmOuaBna.pgp
Description: PGP signature
On Sat, Jan 28, 2006, Kirk Strauser wrote:
On Friday 27 January 2006 17:52, Paul Schmehl wrote:
for files in *.*
do
rm $files
done
Don't ever, *EVER* blindly unlink glob expansions. It's bad for you.
Instead, use something like:
find . -name 'sess.*' -delete
While that's good advice,
server20# pwd
/tmp
server20# ls -l sess*
/bin/ls: Argument list too long.
server20# rm -f sess*
/bin/rm: Argument list too long.
server20#
Any idea how to correct this ?
Regards,
Yujin
www.netfreehost.com
-RELEASE #1: Tue
Oct 18 06:28:41 GMT 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SERVER20 i386
server20# pwd
/tmp
server20# ls -l sess*
/bin/ls: Argument list too long.
server20# rm -f sess*
/bin/rm: Argument list too long.
server20#
Any idea how to correct
2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SERVER20 i386
server20# pwd
/tmp
server20# ls -l sess*
/bin/ls: Argument list too long.
server20# rm -f sess*
/bin/rm: Argument list too long.
server20#
Any idea how to correct this ?
man find
I am getting error Argument list too long. when deleting files from
/tmp directory.
server20# pwd
/tmp
server20# ls -l sess*
/bin/ls: Argument list too long.
server20# rm -f sess*
/bin/rm: Argument list too long.
server20
On Fri, 19 Nov 2004, Dennis Koegel wrote:
find /foo/bar -type f -maxdepth 1 | xargs rm -n100
Although xargs is the most versatile solution for when having too many
items listed, for just deleting find itself can do it..
find /foo/bar -n mask -delete
___
Hi,
I tried to delete all files from a dir, however I got this message:
/bin/rm: Argument list too long.
So, no go. newfs is also no option, because the dir is not a seperate fs.
Any hints exept for manual labour?
Bye,
Mipam.
___
[EMAIL PROTECTED
On Fri, Nov 19, 2004 at 09:58:40AM +0100, Mipam wrote:
I tried to delete all files from a dir, however I got this message:
/bin/rm: Argument list too long.
You probably did rm *, and * expanded to too many files.
One way is to simply remove the directory completely (rm -r /foo/bar
Mipam wrote:
Hi,
I tried to delete all files from a dir, however I got this message:
/bin/rm: Argument list too long.
So, no go. newfs is also no option, because the dir is not a seperate fs.
Any hints exept for manual labour?
Bye,
Mipam.
I gather it's rm * that's not working?
If so, try
On Fri, Nov 19, 2004 at 10:19:39AM +0100, Dennis Koegel typed:
snip
find /foo/bar -type f -maxdepth 1 | xargs rm -n100
or just
ls | xargs rm
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To
12 matches
Mail list logo