[TAG] Recording OpenCourseWare free lectures

Jay R. Ashworth jra at baylink.com
Mon Jun 21 01:01:36 MSD 2004


On Sun, Jun 20, 2004 at 04:35:04PM -0400, Ben Okopnik wrote:
> Well spotted, Thomas! I've got a script to do this that I've been using
> for ages, "psgrep":
> 
> ```
> #!/bin/bash
> # Created by Ben Okopnik on Fri Dec  7 19:23:54 PST 2001
> [ -z "$1" ] && { printf "${0##*/} <process_name>\n"; exit; }
> 
> ps aux|grep -v grep|grep "$1"
> '''
> 
> So, my version of "urlclip" these days consists of almost exactly what
> Jimmy proposed - with the exception of "psgrep" being used to catch the
> mozilla process.

Mine is called psg -- I'm even lazier than you.  :-)

And note that if you do the greps in the oposite order, you move fewer
bytes.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

                2004 Stanley Cup Champion Tampa Bay Lightning




More information about the TAG mailing list