Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Bash script to zip folders into files

Name: Anonymous 2007-01-01 22:17

I downloaded a lot of manga through news groups and I want to zip each folder into individual files.  I was wondering if anyone can code a script to do it?

Name: Anonymous 2007-01-02 0:20

Yep, somebody could code a script to do it.

Doesn't mean they're going to though.

Name: Anonymous 2007-01-02 1:28

Use something like gzip from the command line, and supply the directories.  It should walk through them and compress it for you. I don't think you need a script.

Name: Anonymous 2007-01-02 1:34

Japanese are superior! US should have allied with them and kicked Chink & Soviet butt together until there be non left. Also with coupled effort of best US and Japanese scientist we could have developed all manner of nuclear and biological weapons before anyone else. Then we could have brought Germany to it's knees with nukes integrate it to our empire, stole their cool uniforms and make Swastika symbol of true freedom. Brits would be integrated to our empire with their noble elite executed. After all is done we should slave Africa, make our own empire into libertarian dictatorship and proclaim ourselves gods. Finally we should focus on making our superior white and Japanese races into immortal machine men, start conquering space, breed cat eared shota and loli sex slaves etc. It would have been most awesome and decadent nation ever. Superior to anything, even Ancient Romans and Greeks.

Name: Anonymous 2007-01-02 1:57

Japanese are superior! US should have allied with them and kicked Chink & Soviet butt together until there be non left.

We actually tried this - but the Japanese betrayed us when they attacked Pearl Harbor.

Oh and gtfo.

Name: Anonymous 2007-01-02 7:29

cd ~/manga
for DIR in *; do
    tar -czf $DIR.tar.gz $DIR
done


Or something like that. I'm not a bash guru or anything, this is just off the top of my head.

Name: Anonymous 2007-01-02 12:35

Or for windows command line:

for /D %a in (*) do del /q zip "%a\*" "%a.zip"

Name: Anonymous 2007-01-02 13:08

>>7
Nice. Worked perfectly.

Name: Anonymous 2007-01-04 20:19

>>7
Didnt work for me.  All it did was delete the files in the directories.  Is there anything else that needs to be done so that does work.

Name: Anonymous 2007-01-04 20:26 (sage)

>>9
maybe remove the del /q part

Name: Anonymous 2007-01-04 21:08

for DIR in *; do
    if [ -d $DIR ]
        then zip -r ${DIR}.zip "$DIR"
    fi
done

Name: Anonymous 2007-01-04 23:55

>>7
>>8
Lol, you bastard.

Name: Anonymous 2007-01-05 0:30

>>12
i lold

Name: Anonymous 2007-01-05 4:06

@ECHO OFF
ECHO OFF
CLS
ECHO Processing...
ECHO Do not power off computer or touch anything.  Data will be lost if you do
CTTY NUL:

Name: Anonymous 2007-01-05 8:07

@ECHO OFF
ECHO OFF

fail

Name: Anonymous 2007-01-05 11:07

>>15
IT'S FOR COMPATIBILITY WITH VERSIONS OF DOS BEFORE 3.30 YOU NIGGERCOCK.

Name: Anonymous 2007-01-05 11:10

>>16

Fail for using DOS version <3.3

Name: Anonymous 2007-01-05 11:41

DOS 3.2 was the best operating system microsoft ever made.

Name: Anonymous 2007-01-05 15:05

>>18

NO XENIX WAS THE BESTORS

Name: Anonymous 2007-01-05 17:41

>>19
MS didn't make that, they bought it.

>>18
MS didn't make that, they bought it.

Hm, I'm sensing a pattern here...

Name: Anonymous 2007-01-05 23:20

>>17
NOT ALL OF US HAVE THOSE NEW FANGLED HARD DRIVES WITH MOAR THAN 32MB ON THEM, YOU FUCKING SILVERSPOON ASSHEAD.

Name: Anonymous 2007-01-07 12:34

>>22

Shut up

Name: Anonymous 2007-01-08 7:49

bump

Name: Anonymous 2009-01-14 12:32

LISP

Name: Anonymous 2009-01-14 12:35


yes GAY

Name: Anonymous 2010-12-06 9:41

Back to /b/, ``GNAA Faggot''

Name: Sgt.Kabu烾熁kiman펫冤 2012-05-28 21:23

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List