I am going to stab whoever thought of wildcards for shell scripting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Glickman
    *Insert Witty Phrase*
    • Sep 2003
    • 2673

    #1

    I am going to stab whoever thought of wildcards for shell scripting

    Me: hmm, ok lets get rid of these test directories...
    Bash: rm -r dir*


    Me now realizing my script filename was dirlogs....

    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRR RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRGGGGGGGGGG GGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHH



    sooo noobish of me.


    Unix: 1
    Me: 0
  • Hexis
    Green Mag Freak
    • Sep 2001
    • 2427

    #2
    What you want to type in each file name when doing everything? crazy.

    Comment

    • behemoth
      SVSTC?
      • Nov 2002
      • 7750

      #3
      atleast you;re not using a distro where the bash is an insult to your intelligence.

      Comment

      • SCpoloRicker
        HA HA I'm custom!!1
        • Jan 2004
        • 4375

        #4
        I've been experiencing similar scripting discrepency issues with several of my abacuses (or abaci) lately.

        /porches and lawns and roofs, Oh My!
        God....I guess I was probably returning videotapes.

        Comment

        • Army
          Moderator of DOOOOOOOOMMM!

          • Oct 2000
          • 5785

          #5
          Yeah! HAhahahahaaaaaaa............


          what?

          Comment

          • behemoth
            SVSTC?
            • Nov 2002
            • 7750

            #6
            Originally posted by Army
            Yeah! HAhahahahaaaaaaa............


            what?
            Sneaking liquor in shampoo bottles again?

            Comment

            • rkjunior303
              I need this more than you
              • May 2003
              • 4029

              #7
              Originally posted by behemoth
              Sneaking liquor in shampoo bottles again?
              It's amazing how many nips you can fit in a bottle of Pert Plus.

              PBN Feedback AO Feedback eBay Feedback

              DIRTY ROTTEN SCOUNDRELS (Rob Kenny and Matt Bradley) LIVE @ www.djinnuendo.com TUES 2/8 - 8 to 10PM

              Comment

              • Angry

                #8
                Originally posted by rkjunior303
                It's amazing how many nips you can fit in a bottle of Pert Plus.
                Isn't nip a Japanese person?

                Comment

                • Warwitch
                  Resident Skeptic

                  • May 2006
                  • 3176

                  #9
                  Originally posted by rkjunior303
                  It's amazing how many nips you can fit in a bottle of Pert Plus.

                  Augh, but that aftertaste! Now Pantene on the other hand, thats not so bad.

                  Comment

                  • Lomarandil
                    Registered User
                    • May 2006
                    • 438

                    #10
                    Originally posted by Angry
                    Isn't nip a Japanese person?
                    Well, yes, but you would only be able to fit one...

                    Lo

                    Comment

                    • d4m4don3
                      does anyone read my posts?
                      • Sep 2005
                      • 1228

                      #11
                      Originally posted by Glickman
                      Me: hmm, ok lets get rid of these test directories...
                      Bash: rm -r dir*


                      Me now realizing my script filename was dirlogs....

                      AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRR RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRGGGGGGGGGG GGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHH



                      sooo noobish of me.


                      Unix: 1
                      Me: 0
                      Couldn't you put in ? instead of * depending on the shell your using.

                      Comment

                      • Avale187
                        Registered User
                        • Nov 2007
                        • 41

                        #12
                        Tip #1 LEARN PERL!

                        or...

                        #!/bin/bash
                        #
                        for i in `ls -l /var/logs/logdir`; do
                        rm /var/logs/logsdir/$i
                        done

                        Comment

                        • Warwitch
                          Resident Skeptic

                          • May 2006
                          • 3176

                          #13
                          Originally posted by Avale187
                          Tip #1 LEARN PERL!

                          or...

                          #!/bin/bash
                          #
                          for i in `ls -l /var/logs/logdir`; do
                          rm /var/logs/logsdir/$i
                          done

                          lol, looks like Norwegian to me

                          Comment

                          Working...