No subject


Sun Oct 7 07:16:56 EDT 2012


find . -type d -execdir cat '{}/alternate-i386-desktop.cfg'
/srv/tftpboot/kickstart/always_added_packages.txt>{}/standard-alternate-i386-desktop.cfg'
\;

This results in "bash: {}/standard-alternate-i386-desktop.cfg: No such
file or directory" as if the redirect char is causing a problem with
find and it's not expanding the variable correctly.

This one:

find . -type d -execdir echo '{}/alternate-i386-desktop.cfg
/srv/tftpboot/kickstart/always_added_packages.txt>{}/standard-alternate-i386-desktop.cfg'
\; | xargs -0 cat

Results in a "No such file or directory" error from cat with what
looks like the correct arguments but they are taken as a huge single
argument.  I tried changing the IFS to \n\r but that didn't affect it.

Any ideas?



More information about the mdlug mailing list