Skip to content

Instantly share code, notes, and snippets.

@MukhtaarAziz
Last active May 3, 2022 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MukhtaarAziz/cce47f798850502dbfb8a9801cb4e373 to your computer and use it in GitHub Desktop.
Save MukhtaarAziz/cce47f798850502dbfb8a9801cb4e373 to your computer and use it in GitHub Desktop.
## Creating Directory if not exists.
#!/bin/bash
if [ ! -d /home/mlzboy/b2c2/shared/db ]
then
mkdir -p /home/mlzboy/b2c2/shared/db
fi
## Get Current Date as YYYY-mm-dd
now=$( date +'%Y-%m-%d' )
## Create Zip file compatible with windows
zip -9 -y -r -q <file_name>.zip <destenation>
## Unzip file
unzip <file>
## View Content of Zip file only
unzip -l <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment