Skip to content

Instantly share code, notes, and snippets.

@asselinpaul
Created December 21, 2021 17:46
Show Gist options
  • Save asselinpaul/c8f0a4c0611400b16ca298f0c0202f03 to your computer and use it in GitHub Desktop.
Save asselinpaul/c8f0a4c0611400b16ca298f0c0202f03 to your computer and use it in GitHub Desktop.
rename folder in unix pass using fish
for file in Folder1/*.gpg;
set fn ( echo $file | sed 's/\.[^.]*$//' | sed 's@.*/@@');
pass mv Folder1/$fn Folder2/$fn
end
@asselinpaul
Copy link
Author

if you have your passwords in Folder1/[name].gpg,
this will move them to Folder2/[name].gpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment