mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
Merge branch 'cp-backup' of git://github.com/shigemk2/cheat into shigemk2-cp-backup
This commit is contained in:
commit
900e083b99
@ -6,3 +6,6 @@ cp -r ~/Desktop/cruise_pics/ ~/Pictures/
|
||||
|
||||
# Create a copy but ask to overwrite if the destination file already exists
|
||||
cp -i ~/Desktop/foo.txt ~/Documents/foo.txt
|
||||
|
||||
# Create a backup file with date
|
||||
cp foo.txt{,."$(date +%Y%m%d-%H%M%S)"}
|
Loading…
Reference in New Issue
Block a user