[Nottingham] "unescaping" the wildcard character for xargs
Rory Holland
rory at linux.com
Tue Jun 19 11:30:04 UTC 2012
Let's say I have a command which outputs line-delimited filenames with
wildcards in them.
For example:
/home/alice/*
/home/bob/*
/home/eve/*
I'm trying to cat these files, but using the following doesn't work
<command> | xargs cat
This is because the * character is being interpreted literally, so I
get the following error on each line:
cat: /home/alice/* : no such file or directory.
Nothing in man xargs seems to help. What can I do?
More information about the Nottingham
mailing list