[clug] Bashism desired
Scott Ferguson
scott.ferguson.clug at gmail.com
Mon Mar 11 20:50:53 MDT 2013
On 12/03/13 12:52, Chris Smart wrote:
> On 12/03/13 12:47, Scott Ferguson wrote:
>> I often wish there was way to reduce repetition within a single command
>> run in Bash to save typing and reduce errors.
>> Perhaps there is and it's so obvious I've forgotten/keep overlooking it :/
>>
>> Examples:-
>> 1. cp some_directory_path/some_file some_directory/some_file.variation
>
> I often use:
> cp some_directory_path/part-to-keep{part-to-change,new-part}
>
> -c
Yes that's the thingy! Thankyou
I'd best go purchase a Walker frame soon it looks like I'll be needing
it sooner than expected.
On 12/03/13 12:55, Carlo Hamalainen wrote:
<snipped>
>
>
> This is between two different directories, i.e.
>
> cp dir1/some_file dir2/some_file.variation ?
No. Apologies for the ambiguity.
Kind regards
More information about the linux
mailing list