[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Let bash accept an option of something like -v in awk
From: |
Peng Yu |
Subject: |
Re: [Help-bash] Let bash accept an option of something like -v in awk |
Date: |
Sat, 28 Mar 2015 08:54:55 -0500 |
On Fri, Mar 27, 2015 at 1:04 PM, Dan Douglas <address@hidden> wrote:
> On Fri, Mar 27, 2015 at 9:47 AM, Peng Yu <address@hidden> wrote:
>> I need to call `bash -e`
>
> I doubt that.
>
>> with the -exec option of find. When the file contain special characters, it
>> becomes
>> problematic to use bash robustly.
>
> Pass data through the positional parameters.
Thanks for reminding this. Yes, then I think it is not necessary to
have the `-v` option added.
> find args -exec bash -c 'for x; do ...; done' _ {} +
>
> --
> Dan Douglas
--
Regards,
Peng