Created
December 21, 2021 17:46
-
-
Save asselinpaul/c8f0a4c0611400b16ca298f0c0202f03 to your computer and use it in GitHub Desktop.
rename folder in unix pass using fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in Folder1/*.gpg; | |
set fn ( echo $file | sed 's/\.[^.]*$//' | sed 's@.*/@@'); | |
pass mv Folder1/$fn Folder2/$fn | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you have your passwords in
Folder1/[name].gpg
,this will move them to
Folder2/[name].gpg