[NTLUG:Discuss] What scripting change do I need to make?
Robert Citek
robert.citek at gmail.com
Mon Oct 5 00:44:00 CDT 2015
I find your original version using braces more readable. What's your
rationale for wanting to use seq?
Regards,
- Robert
On Saturday, October 3, 2015, Leroy Tennison <leroy.tennison at verizon.net>
wrote:
> Thanks, that works (had to refresh my printf understanding).
>
> On 10/03/2015 04:31 AM, Patrick R. Michaud wrote:
>
>> How about...?
>>
>> mkdir -p `seq -f "test/%g" 1 3`
>>
>> Pm
>>
>> On Sat, Oct 03, 2015 at 12:36:25AM -0500, Leroy Tennison wrote:
>>
>>> Using
>>>
>>> mkdir -p test/{1,2,3}
>>>
>>> creates test/1, test/2 and test/3 as expected. However
>>>
>>> mkdir -p test/{`seq -s, 1 3`}
>>>
>>> creates test/{1,2,3}
>>>
>>> What do I need to do to get the "seq" variant to produce the same result
>>> as
>>> the first command?
>>>
>>>
>>> _______________________________________________
>>> http://www.ntlug.org/mailman/listinfo/discuss
>>>
>> _______________________________________________
>> http://www.ntlug.org/mailman/listinfo/discuss
>>
>>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list