From 7dbc7039ec08c9743614e1525035f71466b8d01b Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Fri, 27 Feb 2026 10:19:07 +0100 Subject: [PATCH] feat(bash): add "mvf" function to move files from a source to target dir --- .bash_aliases | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index f3e8f33..c50f532 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -170,6 +170,11 @@ swp () { mv "$1.$tmp_suffix" $2 } +# Move all files from a source directory to a target directory +mvf () { + find "$1" -maxdepth 1 -type f -exec mv {} "$2" \; +} + # +-----+ # | Git | # +-----+