mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
@@ -10,7 +10,7 @@ encodefile64() {
|
|||||||
if [[ $# -eq 0 ]]; then
|
if [[ $# -eq 0 ]]; then
|
||||||
echo "You must provide a filename"
|
echo "You must provide a filename"
|
||||||
else
|
else
|
||||||
base64 -i $1 -o $1.txt
|
base64 $1 > $1.txt
|
||||||
echo "${1}'s content encoded in base64 and saved as ${1}.txt"
|
echo "${1}'s content encoded in base64 and saved as ${1}.txt"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user