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

Pages: 1-

python toal newbie

Name: Im learning english 2012-11-07 17:54

sup

I'm trying to make a simple script in python but I'm bad and I need some enlightenment.

I need to create a folder with the name of the day, I can get that string with "strftime"... but the folder name must contain another date, every Monday to be precise:

example of the folder name: "11-05-2012 to 10-29-2012"

I can't "manipulate" object that came through "strftime" :/
I think it's cuz its a string, right?

I use "os.mkdir" to create the folder, at least I can do that.

Name: Anonymous 2012-11-07 17:58

$ mkdir `date +%F`

Name: Im learning english 2012-11-07 18:27

I didn't understand... but I should RTFM.

Thanks anyway!

Name: Anonymous 2012-11-07 18:31

you should look into learning a real programming language instead, not toy crap.

suggestions:
- perl
- C
- common lisp

Name: Im learning english 2012-11-07 18:36

Maybe should I but I don’t want to program big stuff, just "toy" script to automate some of my admin task. Nothing too much serious.

Name: Anonymous 2012-11-07 20:29

You'll be surprised how fast you can create scripts with common lisp.

Name: Anonymous 2012-11-07 20:31

>real programming language
>perl

i lol'd

Name: Anonymous 2012-11-07 20:33

>>7
>le meme arrows
>le mfw when le /g/
XD

Name: Anonymous 2012-11-07 20:34

>>8
le XD bro :)
i come from le reddit
i'll stay XD XD XD

Name: Anonymous 2012-11-07 20:37

>>4
Don't touch PPP. Pick up:
Unix Shell Programming 9780672324901
Mastering Unix Shell Scripting: 9780470183014
And then read about scheme or CL, with AWK.

You will become an sysadmin/prog/rammer in no time.

>>2
Die in a fire bash.

Name: Anonymous 2012-11-07 20:38

>>10
lol unix
lol shell programming
lol awk
lol sysadmin

typical unixtard

Name: Anonymous 2012-11-07 20:43

>>11
Why not? Still playing your G4M$ at the basement under your parents house?

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