Argument list too long - Shell error
Trying to tar specific files from a directory causes problems when the number of files is too large.
ls ~/logs | wc -l
5928
In the logs directory - I have 5928 files
If I want to include all files with today's date - I run the following command
tar cf ~/archive/LoadLogs_20060302.tar ~/logs/LoadLog_20060302_*.log
However, I get the following error:
/usr/bin/tar: Argument list too long
Any suggestions on how to correct this would be appreciated.
Thanks,
Rick
Last edited by dad5119; 03-02-2006 at 01:31 PM..
|