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/bash | |
# This function takes a file name as input | |
# and performs extraction based on the file type | |
function file_actions { | |
# Set the file name as a static variable | |
file_name=$1 | |
# Check the file name | |
if [[ $file_name == *.zip ]]; then |
OlderNewer