All of us have thos ignoramus windows users who we are ashamed to be friends with [OK, maybe a bit harsh, j/k]
Anyway, windows users seem to be able to be fascinated for hours at the fact that we can include scripts in our $PATH, and run them from anywhere.
My question is: What was your useless, 3 line script or fn() that made your windows using friends jaw drop in amazement? [to qualify, your script must appear to be a complete waste of time to us 'nix users]
The following script basically substitutes the words 'doafter', with 'at now + ', but don't tell anyone. It also is a lot more polite, which made the Jaws of my friends drop to the ground.
Here is mine:
Code:
doafter()
> {
> echo How May I serve you Master $USER?
> echo Allow me $@ to get Ready
> at now + $@
> }
And then, I used it in front of my friends
Code:
[tejas@localhost tejas]$ doafter 1 hour
How May I serve you Master tejas?
Allow me 1 hour to get Ready
at> shutdown
at> <EOT>
And whatever they did, they couldn't stop my machine from shutting down after 1 hour.