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
#!/bin/sh | |
# | |
# Calculates a percentage | |
# | |
echo "scale=3; $1 / $2 * 100" | bc |
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
#!/bin/sh | |
# | |
# Create a list of all txt files | |
# Loop over all files | |
# Extract name (split on '_') | |
# Copy file to new extension (text) | |
# | |
files=`ls -l *.txt | awk '{print $9}'` |
NewerOlder