Have some free spookies user!

Have some free spookies user!

#!/bin/bash

for ((i=1;i

Other urls found in this thread:

openuserjs.org/scripts/Spoop/Spoop
s.4cdn.org/image/skeletons/{}.gif
pubs.opengroup.org/onlinepubs/9699919799/
s.4cdn.org/image/skeletons/{1..23}.gif
s.4cdn.org/image/skeletons/@'.gif
twitter.com/SFWRedditVideos

Nigger bump

Better spookies openuserjs.org/scripts/Spoop/Spoop

Here's one compatible wish posix sh, and dash, and probably other old bourne shells.
#!/bin/sh
I=1
while
test $I -le 23
do
wget "s.4cdn.org/image/skeletons/${I}.gif"
I=`expr $I + 1`
done

If desired, and your shell supports it, you can replace
I=`expr $I + 1`
with
I=$(( I + 1 ))

seq 1 23 | parallel wget s.4cdn.org/image/skeletons/{}.gif

seq is in posix

>seq is in posix
pubs.opengroup.org/onlinepubs/9699919799/
You're wrong. seq is useful though.

#!/bin/csh -f
@ i= 1
while ( $i

S P O O K E D

spoopity

wget s.4cdn.org/image/skeletons/{1..23}.gif

plebs step aside

Thanks user, learnt something new

hey guys, just letting you know you misspelled Sup Forums as 4cdn. no prob, just correct it so that people can get those spookies.

keep in mind brace expansion like that only works in bash

>2017
>not just doing
echo {1..23} | tr ' ' '\n' | xargs -I @ wget 's.4cdn.org/image/skeletons/@'.gif

Pleb.

Fuck, is better, Thanks senpai

>you misspelled Sup Forums as 4cdn
this

In which shell?

Complete boob here, what js script code will load a single skele in the bottom right corner? thanks!

>Complete boob here
fag

It also works in ksh93

In PowerShell :^)
$a = @()
for ($i=1; $i -le 23; $i++) {
$a += wget "s.4cdn.org/image/skeletons/$i.gif"
}


Now you have all your skellingtons together

for ($i=1; $i -le 23; $i++) {
Invoke-WebRequest "s.4cdn.org/image/skeletons/$i.gif" -OutFile "C:\temp\spooky$($i).gif"
}

>not just
wget s.4cdn.org/image/skeletons/{1..23}.gif

ksh, zsh, bash, literally any nonshit shell should have sequence expression.

zsh takes it a step further by allowing numeric variable expression before expanding sequence exprs.

>not reading the thread
leave cancer and never come back