mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2026-04-12 23:29:39 +02:00
feat(bash): add "mvf" function to move files from a source to target dir
This commit is contained in:
parent
75eb66197e
commit
7dbc7039ec
1 changed files with 5 additions and 0 deletions
|
|
@ -170,6 +170,11 @@ swp () {
|
||||||
mv "$1.$tmp_suffix" $2
|
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 |
|
# | Git |
|
||||||
# +-----+
|
# +-----+
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue