I am going to hell [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

Wed 2004-11-10 14:16
I am going to hell
LinkReply
[identity profile] ewx.livejournal.comWed 2004-11-10 16:12

Cool.

I'm puzzled by the temporary variable - why not:

echo-literally-helper() {
  history 1 | perl -pe 's/^ *[0-9]+ +[^ ]+ //'
}
Link Reply to this | Thread
[personal profile] simontWed 2004-11-10 16:19
Because it's example code, and the real aim is to illustrate that once you've got $str, you can do further string processing on it in any fashion you like. The echo command is really a placeholder for "now do stuff of your choice with".
Link Reply to this | Parent
navigation
[ go | Previous Entry | Next Entry ]
[ add | to Memories ]