I often type the wrong command as follows under Linux bash shell:
rsync -av dir1 email@example.com:/path/to/dir1
cp -av file1*.txt file2*.txt /path/to/dest
I need to correct those command as follows:
rsync -av dir5 firstname.lastname@example.org:/path/to/dir1
cp -av delta1*.txt delta2*.txt /path/to/dest
How do I replace dir1 with dir5 or file with delta and repeat the last command under bash shell?
[click to continue…]