Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
On 07/03/16 03:44, Val Krem wrote:
> Hi John and all,
>
> I created several files *.txt and when I execute the this command,
>
>
> autil +10 *txt
>
>
> It is listing the first file only!!!
>
Your function only deals with 2 arguments, but you are passing it
several arguments, not just 2. Bash will expand *txt to all files ending
in txt, resulting in many more arguments than you intended. To avoid
this, you should quote it:
autil +10 '*txt'
signature.asc Description: OpenPGP digital signature