Thinking In Software
Friday, October 18, 2013
Linux or Solaris bash: rm: Arg list too long
Let us remove all files following a wildcard:
$ rm /tmp/log* bash: /usr/bin/rm: Arg list too long
Commands find and xargs to the rescue:
$ find /tmp -name "logMonitor*" | xargs rm
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment