Author Topic: Command line fun  (Read 312 times)

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12660
Command line fun
« on: December 11, 2012, 06:03:32 PM »
Copy and paste the following code in a konsole terminal window and press enter for a little winter surprise.  ;D

Oh the weather outside is frightful
But the fire is so delightful...
And since we've no place to go....


Code: [Select]
clear; while :; do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS)); sleep 0.1; done | awk '{a[$3]=0; for(x in a) {o=a[x]; a[x]=a[x]+1; printf "\033[%s;%sH ",o,x; printf "\033[%s;%sH*\033[0;0H",a[x],x;}}'
« Last Edit: December 11, 2012, 06:28:24 PM by Texstar »

Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11064
  • MLUs Forever!
Re: Command line fun
« Reply #1 on: December 11, 2012, 06:06:57 PM »
 ;D ;D

Nice one!  :D
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2259
Re: Command line fun
« Reply #2 on: December 11, 2012, 06:09:25 PM »
A early Easter egg !  lol

JohnW
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline Rudge

  • Hero Member
  • *****
  • Posts: 9773
  • I'm Just A Dog.
Re: Command line fun
« Reply #3 on: December 11, 2012, 06:11:34 PM »
LOL,, Awesome !!!    ;D ;D ;D ;D

« Last Edit: December 11, 2012, 06:25:54 PM by Rudge »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Online jaydot

  • Administrator
  • Super Villain
  • *****
  • Posts: 15573
  • there is no limitation on imagination
Re: Command line fun
« Reply #4 on: December 11, 2012, 08:19:02 PM »
ooh! quality snow.  it settles.  ;D ;D
PCLinuxOS  Get it?  Got it?  Good!!   8)

We don't have any millionare angels or corporate backers paying the bills here, PLEASE DONATE.
http://pclinuxos.com/?page_id=7

Offline Rudge

  • Hero Member
  • *****
  • Posts: 9773
  • I'm Just A Dog.
Re: Command line fun
« Reply #5 on: December 11, 2012, 08:33:58 PM »
Code: [Select]
clear; while :; do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS)); sleep 0.1; done | awk '{a[$3]=0; for(x in a) {o=a[x]; a[x]=a[x]+1; printf "\033[%s;%sH ",o,x; printf "\033[%s;%sH*\033[0;0H",a[x],x;}}' &
Try it with an "&" at the end..  You can keep working,,, for a bit. Until you get "snowed-in"    ;D ;D
« Last Edit: December 11, 2012, 08:35:48 PM by Rudge »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline Linux-Blue

  • Sr. Member
  • ****
  • Posts: 384
  • (Formerly known as Vanguard-741)
Re: Command line fun
« Reply #6 on: December 11, 2012, 09:10:58 PM »
not sure how you got that picture up with the snow. I see snow in the terminal, or those * coming down and landing on the bottom.
I'm guessing you used a wallpaper as your background image for the terminal. Can't find that anymore.

Snowed in? I tried both codes, and only one line gets filled.
Technology changes. Human nature doesn't." -me

Offline RobNJ

  • Hero Member
  • *****
  • Posts: 604
Re: Command line fun
« Reply #7 on: December 11, 2012, 09:20:10 PM »
Great!!



Offline Rudge

  • Hero Member
  • *****
  • Posts: 9773
  • I'm Just A Dog.
Re: Command line fun
« Reply #8 on: December 11, 2012, 09:43:58 PM »
not sure how you got that picture up with the snow. I see snow in the terminal, or those * coming down and landing on the bottom.
I'm guessing you used a wallpaper as your background image for the terminal. Can't find that anymore.

Snowed in? I tried both codes, and only one line gets filled.

It's a "Screenie" shot of "LXTerminal", full screen in LXDE.

I like to set a slight transparency to LXTerminal so what you are seeing is my desktop behind LXTerminal.  ;D 


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan