Skip to content

Instantly share code, notes, and snippets.

@mokanfar
mokanfar / extract.sh
Created December 12, 2022 01:03
Extract newly downloaded Most Common Archived files
#!/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