On 8/10/19 1:00 am, Andrew Greig via luv-main wrote:
>
>
> On 8/10/19 12:55 am, Andrew McGlashan via luv-main wrote:
>> Oh and IF the file names had spaces, there would be more considerations.
>> _______________________________________________
>> luv-main mailing list
>> [email protected]
>> https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
>>
>
> I learned long ago on this list, to avoid spaces in file names.
You can deal with spaces, but it can be extra work depending on the how
the task is done.
$ touch aaa\ H\ bbb bbb\ H\ ccc ddd\ H\ ddd
$ ls -1
aaa H bbb
bbb H ccc
ddd H ddd
$ for x in *H*;do mv -vi "${x}" "${x/H/J}";done
'aaa H bbb' -> 'aaa J bbb'
'bbb H ccc' -> 'bbb J ccc'
'ddd H ddd' -> 'ddd J ddd'
$ ls -1
aaa J bbb
bbb J ccc
ddd J ddd
A.
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main