Argument list too long

I've run into this running rm * and du -hcs *. Solution is to pass the command via pipe and use xargs:

find . -name 'filename*' | xargs rm

Comments

Popular posts from this blog

Database, schema, and table sizes in Greenplum

Greenplum update with multiple tables

Show running queries on Postgresql/Greenplum