Results 1 to 8 of 8

Thread: Repeat text in command line

  1. #1
    Join Date
    Jan 2008
    Location
    surrey
    Beans
    3
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Repeat text in command line

    Hi All,

    I used to remember a command that repeated infinite times in the terminal.

    This command was not helpful in anyway but was fun to run on a mates computer.....

    E.G.

    Command HA

    it would then repeat HA infinite times till the break sequence.

    Does anyone know the command ?

  2. #2
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Repeat text in command line

    Code:
    while true; do echo 'Hello World';sleep 1;done

  3. #3
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Repeat text in command line

    Quote Originally Posted by elliotktm View Post
    Does anyone know the command ?
    `yes'

  4. #4
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Repeat text in command line

    Let's play:

    0. Prepare by installing espeak

    Code:
    sudo apt-get install espeak
    1. Let the computer laugh

    Code:
    while true; do espeak 'Haha';sleep .1;done
    Only your fantacy will limit what is possible

  5. #5
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Repeat text in command line

    Quote Originally Posted by sudodus View Post
    Let's play:
    m'kay, I'm in:
    Code:
    espeak 'choo oo oo choo oo oo choo oo oo choo oo' & sl

  6. #6
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Repeat text in command line

    A more elegant way:
    Code:
    yes haha | espeak

  7. #7
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Repeat text in command line

    yes, the shorter the better

    Maybe this is [closer to] what the OP is looking for.

  8. #8
    Join Date
    Jan 2008
    Location
    surrey
    Beans
    3
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Repeat text in command line

    Thanks sisco311

    Just what i was looking for.....

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
  •