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
# Prompt | |
PS1="\u@\h:\w>" | |
# timestamp | |
$(date +%y%m%d_%H%M%S) | |
# Unzip and rename appeal.xml by AppealNumber from manifest.txt | |
for file in $(ls -1 .); do | |
appealNum=$(unzip -p ${file} 'manifest.txt' | awk -F '=' '/AppealNumber/ {print $2}') | |
unzip ${file} appeal.xml && mv appeal.xml ${appealNum}-appeal.xml |