![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| What's on Your Mind? Come inside and relax a while. Maybe play a few Video Arcade Games if you have free time. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Profile scripts versus rc scripts.... | rookie22 | UNIX for Dummies Questions & Answers | 1 | 09-17-2008 09:31 AM |
| To run scripts | rollthecoin | AIX | 1 | 04-04-2008 10:16 AM |
| Calling expect scripts from other expect scripts | seva | Shell Programming and Scripting | 0 | 04-03-2008 01:45 PM |
| Regarding Changes in jil scripts | ranga27 | UNIX for Advanced & Expert Users | 0 | 09-07-2007 03:15 PM |
| scripts | FLXS | Shell Programming and Scripting | 3 | 11-11-2002 10:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
|||||
|
Quote:
This thing doesn't parse on my system. But what I'd expect is nothing, since usually the null command comments out the rest of the line effectively. Tried it. It doesn't parse on my system in ksh, csh, sh or bash. Here's one to try on a terminal that supports colors: Code:
perl -e 'for(0..2){&x($_=q^44,37:07* %41,31:20#%-%44,37:06 *% %47,37:20 %-^)};
&x($_=q^44,37:07* %41,31:20#%-^);for(0..2){&x($_=q^%47,37:34 %-%41,31:34#%-^)};
sub x{for(split(/%/)){s/(\d\d),(\d\d):/\033[$1m\033[$2m:/;
s/:(\d\d)(\D*)/$2x$1/e;s/-/\033[0m\n/g;print;}}'
|
|
|||||
|
Quote:
Looks like a function declaration with an invalid name, the colon NOP command. Then it pipes the output of the NOP command to another NOP command and sticks it in the background. The {} delimit the function declaration. The ; is the command separator. And the final : is just a NOP again. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|