[clug] Bashism desired
Chris Smart
clug at christophersmart.com
Mon Mar 11 19:52:50 MDT 2013
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
More information about the linux
mailing list