Gentoo Archives: gentoo-dev

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: Virtual for awk implementation
Date: Wed, 30 May 2012 18:41:11
Message-Id: 4FC6696A.8050406@binarywings.net
In Reply to: Re: [gentoo-dev] RFC: Virtual for awk implementation by Florian Philipp
1 Am 30.05.2012 20:29, schrieb Florian Philipp:
2 >
3 > mkdir -p mkdir /tmp/foo; find "$HOME" -type f -printf '%f %s\n' | \
4 > gawk '{ print $2 > "/tmp/foo/" $1 }'
5 >
6 > --> Fills /tmp/foo with small files
7 >
8 > mkdir -p mkdir /tmp/foo; find "$HOME" -type f -printf '%f %s\n' | \
9 > mawk '{ print $2 > "/tmp/foo/" $1 }'
10 >
11 > --> Crashes with error 'mawk: cannot open "/tmp/foo/7B090d01" for output
12 > (Too many open files)'
13 >
14 > Probably not the cleverest approach to this but just a reminder that
15 > there are still subtle differences.
16 >
17 > That being said, +1 for giving the choice.
18 >
19 > Regards,
20 > Florian Philipp
21
22 s/mkdir -p mkdir/mkdir -p/g

Attachments

File name MIME type
signature.asc application/pgp-signature