Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Help me learn basic BASH scripting by posting examples

  1. #11
    Join Date
    Oct 2007
    Location
    Zagreb, Croatia, Europe
    Beans
    513
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Help me learn basic BASH scripting by posting examples

    Quote Originally Posted by schauerlich View Post
    Explain how the forkbomb here works. (The one with all the colons and parentheses)
    it is using functions

    Code:
    :(){};
    is a function with name :
    Code:
    :(){: | : &};
    inside function its recursivly calling itself twice and forking process outside terminal

    and the last part : after; is running that : function
    Dear god, I would like to file a bug report.

    increase Firefox startup speed and speed of Smart Location Bar:
    http://ubuntuforums.org/showthread.php?t=1088094

  2. #12
    Join Date
    Aug 2009
    Location
    Ireland / The Czech Repub
    Beans
    283
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Help me learn basic BASH scripting by posting examples

    Quote Originally Posted by schauerlich View Post
    Code:
    echo -e "\x5c\x64\x2e\x24\x6f\x40\x33\x20\x79\x5e\x26\x6f\x75\x40\x72\x20\x6f\x40\x28\x35\x77\x6e\x20\x24\x77\x21\x6f\x23\x72\x25\x6b" | sed 's/[\\\.\$\@3\^\(5\!\#\%\&]//g'
    That's awesome.
    __________________

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •