linner.org

Fix (the annoying) “argument list too long”

Posted by in Lagom

In this example we want to archive a huge number of .xml files in the current directory:

# find . -name "*.xml" -print > ./file.lst
# tar czvf ./archive.tgz --files-from ./file.lst

And delete all archived files:

# xargs -a ./file.lst rm -v
# rm ./file.lst
0

PHP setlocale() in Slackware

Posted by in Hosting

In order to get the PHP function setlocale() to work in Slackware you need some libraries installed:

glibc
glibc-i18n

I’m using Slackware 14.1 (64bit), sooo:

# wget ftp://ftp.slackware.no/slackware/slackware64-14.1/patches/packages/glibc-i18n-2.17-x86_64-11_slack14.1.txz
# wget ftp://ftp.slackware.no/slackware/slackware64-14.1/patches/packages/glibc-2.17-x86_64-11_slack14.1.txz
# installpkg glibc-2.17-x86_64-11_slack14.1.txz
# installpkg glibc-i18n-2.17-x86_64-11_slack14.1.txz