LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > sag47
User Name
Password

Notices


Rate this Entry

Streamlining the process of uploading

Posted 08-17-2010 at 11:21 AM by sag47
Updated 08-17-2010 at 11:24 AM by sag47

Today I had to zip up about 50 folders and upload them to a software directory for my work. That's a huge hassle and they didn't need to be in any particular order. The names of the zip files had to be the same name as the folder so that made my life easier. I zipped them all, moved them into a filestoupload folder and then uploaded them.

A process which would have taken 10-20 minutes on a Windows machine took less than a minute of my precious time on my Linux box. For most of it I could walk away and get other things done.

Code:
sudo bash #simulate root login, I hate the sudo command so I use it as little as possible
for x in `ls -w 1`;do zip -r $x.zip $x;done;mkdir filestoupload;mv *.zip filestoupload/;chown -R sam\: filestoupload
Walk away, come back, bulk upload files, Done
Posted in Uncategorized
Views 1858 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration