Ahoy, all you command-line jocks out there. I have a CD of fonts which came only with a win installer. Examining the disk, it appears that the font files are all in five or so subdirectories, and each and every one of these files is zipped. In order to unzip them into subdirectories of ~/.font/ I ran the following command:
$ for i in `ls /media/cdrecorder5/subdir/*.zip`; do unzip $i; done
(where subdir is one of several font directories).
This worked fine until I got to a certain subdirectory which generated the following error message: bash: /bin/ls: Argument list too long
According to $ ls | wc -l
, in contains notabene 3307 (!) files. I tried narrowing the selection with | grep - ^[a-f]
to no avail. I appear to be coming up against an internal limitation of bash. Any way of getting around this? Anything not to have to unpack those files one by one.