Skip to content

Instantly share code, notes, and snippets.

@paridin
Created April 22, 2016 22:14
Show Gist options
  • Select an option

  • Save paridin/873c4c4e0f1414fd77a226826eda45be to your computer and use it in GitHub Desktop.

Select an option

Save paridin/873c4c4e0f1414fd77a226826eda45be to your computer and use it in GitHub Desktop.
solve error ksh args list too long
# fix to error ksh: /usr/bin/ls: arg list too long
phrase='TD*.log' # or get by console $1
for i in `find . -name `$phrase``;
do
echo "Removing: $i";
rm -rf $i;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment