[Novalug] where are they?

James Ewing Cottrell III JECottrell3@Comcast.NET
Sun Mar 15 19:55:17 EDT 2015


On 3/8/2015 5:56 PM, pereira via Novalug wrote:
> Joh,
>
> the command you suggested last,
>
> mv $(cat filelist) directory-for-files
>
> works really well.
>
> I did not know about the $(..) trick, that this can be
> a variable that can be one of the two that 'mv' needs.
>
> I learned a lot today, Thanks Jon and Peter: you really
> went out of their way to clarify the issues.
>
> Let's give them a virtual hand of applause ////////
>
> Nino

Nino, you may be confused. The construct $(....) is NOT a Variable, it 
is a Command Substitution. It used to be written as `...`

But I can see your temptation to think of it that way, since it has a $, 
and indeed, a variable would work in the mv command. In fact, ${...} 
*is* a variable.

JIM




More information about the Novalug mailing list