unix - how to create a file in shell script with specific password -


i looking way create password protected file in shell same password instead of random password since need ftp file 3rd party hence dont need password changed every time , below sample code snipet ,

echo "store,customer,start time,end time" > $dir/output/order.csv cat $dir/output/order.del >> $dir/output/order.csv rm -f $dir/output/order.del 

i need file order.csv password protected , lets 1234 every time.

if zipping option you, can password protect zip file:

zip -p 1234 order.zip $dir/output/order.csv 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -