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

Holy shit, bash string manipulation.

Name: Anonymous 2009-08-25 0:20

Is it just me, or is Bash string manipulation the most god-awful ugly piece of shit there is? I mean, it's functional and everything, but it's like writing your script in Brainfuck. I wanted to make it change "/(letter)/stuff/shit" to "letter:\stuff\shit". Here's what it looked like:


${i//\/[a-zA-Z]\//${i:1:1}\:\\}


I couldn't do that again if I wanted to.

Name: Anonymous 2009-08-25 0:22

thats what sed is for, chief
use the right tool for the job

Name: Anonymous 2009-08-25 0:25

>>2

Too bad I never took the time to learn sed. Will do that nao.

Name: Anonymous 2009-08-25 0:30

:|

Name: Anonymous 2009-08-25 2:18

For simple stuff use tr, for more complex stuff use perl; sed has horrible syntax. As does awk, but at least it's field separation often works much better than cut.

Name: Anonymous 2009-08-25 5:05

>>3
nao.
No, don't even go back to /b/. Just leave the Internet forever.

Name: Anonymous 2009-08-25 22:01

>>6

I'm just fucking around. You don't need to get your panties in a knot.

Name: Anonymous 2009-08-25 22:27

>>7
no, i agree with >>6.
leave

Name: Anonymous 2009-08-26 0:35

>>6,8
Samefag

Name: Anonymous 2009-08-26 0:59

>>7,9 Samefag

Name: Anonymous 2009-08-26 2:12

don't be a nigger
bash replacement is easy

Name: Anonymous 2009-08-26 20:57

>>9,10
[i][u]gb2b[/i][/u]

Name: Anonymous 2009-08-26 21:00




                    dicks
                   /     \
                  /       \
               dicks     dicks
               /   \     /   \
              /     *   /     \
           dicks      dicks  dicks
           /   \     /    \  /   \
          *   dicks *     * *    dicks

Name: Anonymous 2009-08-26 22:20

>>13
You should sort that binary dicks tree with a Fibonacci butt sort.

Name: Anonymous 2011-05-16 12:48

>>6,8,12
Fuck off and die, you motherfucking cock gurgling faggot cunt I fucking hate you.

Name: Anonymous 2011-05-16 13:23

Go traverse a tree of dicks

Name: Anonymous 2011-05-16 13:36

>>17
fuck you faggot

Name: Anonymous 2011-05-16 14:43

bash PE fucks sed and friends right up the ass, performance-wise.

Name: Anonymous 2011-05-16 14:45

>>13
B.. B.. BINARY DICKS TREE?!

Name: Anonymous 2011-05-16 15:00

>>20
reminds me of the good days of /prog/. Good old 2009...

Name: Anonymous 2011-05-16 20:02

>>21
20097~2008

Name: Anonymous 2012-05-07 9:21

>>21
that's right, we all miss frozenvoid

Name: Anonymous 2012-05-07 9:27

I don't miss fagshits from reddit, because they never leave.

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