Created
April 22, 2016 22:14
-
-
Save paridin/873c4c4e0f1414fd77a226826eda45be to your computer and use it in GitHub Desktop.
solve error ksh args list too long
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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