Last active
October 29, 2020 09:17
bash_scirpts_for_userfull_tasks.sh
This file contains hidden or 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
# Rename files from .HTM --> .html | |
#!/bin/bash | |
for file in *.HTM; do | |
name=$(basename "$file" .HTM) | |
mv "$file" "$name.html" | |
done | |
----------------------------------------------------------------- | |
# enumerate files | |
#!/bin/bash | |
for file in *.HTM; do | |
name=$(basename "$file" .HTM) | |
mv "$file" "$name.html" | |
done | |
# get time freespace info | |
#!/bin/bash | |
echo "Starting at: $(date)"; | |
echo "UPTIME"; uptime ; | |
echo "FREE" ; free ; | |
echo "WHO" ; who ; | |
echo "Finishing at: $(date)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment