Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.12 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.12 KB

share

Share your files or text data right away from your terminal and get a shareable link with expiration date. The link is downloadable only once , then it will be deleted

This service is using http://file.io

Usage

sh share.sh [-f 'PATH_TO_FILE'] [-d 'TEXT_DATA'] '3d|14w|1m|2y'

Example- Upload and share file:

sh share.sh -f "./dir1/xyz.json" "10d" # Expiration date after 10 days
sh share.sh -f "./dir1/xyz.json" "10m" # Expiration date after 10 months
sh share.sh -f "./dir1/xyz.json" "10w" # Expiration date after 10 weeks
sh share.sh -f "./dir1/xyz.json" "10y" # Expiration date after 1 year

Example- Share text data:

sh share.sh -d "Hello, some shareable text data is here" "10d" # Expiration date after 10 days
sh share.sh -d "Hello, some shareable text data is here" "10m" # Expiration date after 10 months
sh share.sh -d "Hello, some shareable text data is here" "10w" # Expiration date after 10 weeks
sh share.sh -d "Hello, some shareable text data is here" "10y" # Expiration date after 1 year