X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,1bf4e46a52a72b7b X-Google-Attributes: gidf996b,public X-Google-Thread: 1012a6,29a923fbbd8ba89c,start X-Google-Attributes: gid1012a6,public X-Google-ArrivalTime: 1994-12-17 12:53:09 PST Path: nntp.gmd.de!dearn!blekul11!idefix.CS.kuleuven.ac.be!ub4b!EU.net!Germany.EU.net! howland.reston.ans.net!gatech!rutgers!mcrcr6!cmcl2!newsserv.cs.sunysb.edu!adam.cc.sunysb.edu!bgriffin Newsgroups: alt.ascii-art,comp.unix.shell Subject: Re: Anyway to randomize sig files? Message-ID: <3cv671$sn6@adam.cc.sunysb.edu> From: bgriffin@ic.sunysb.edu (Eli the bearded) Date: 17 Dec 1994 17:13:05 GMT References: <34550.stroheck@student.msu.edu> <3cppfl$mc9@cronkite.seas.gwu.edu> <3csckl$bru@lastactionhero.rs.itd.umich.edu> Organization: gnat tang does a body good NNTP-Posting-Host: csws11.ic.sunysb.edu XGrepFood: My spleen has a Cantor and Siegel green card -- NSA series. XDisclaimed: It wasn't my spleen that spray painted "sabatage is sex" XDisclaimed2: on your car officer, honest. My spleen doesn't have hands. Lines: 32 Xref: nntp.gmd.de alt.ascii-art:18170 comp.unix.shell:17840 Note cross posting. In article <3csckl$bru@lastactionhero.rs.itd.umich.edu>, knassen@cochrane.bus.umich.edu (Kent Stefl Nassen) writes: >>*] > Can someone tell me if there is a way to randomize sig files? >Here is a perl script I grabbed from somewhere. It was originally set >up to put random one-line quotes in your .sig, but I modified it to >just randomize a group of .sig files. Very simple. I use it with pine >by aliasing pine to 'randsig; pine'. Then, whenever pine is run, you >will get a random sig. You can use the same aliasing trick for other >programs, assuming your shell allows aliases. #!/location/of/perl $home = "/your/home/directory"; srand(time|$$); @files = <$home/sigs/*>; $this = $files[rand(@files)]; `cp $this $home/.signature`; Anybody either have or can quickly modify this to be more friendly to the inode-imparied? My site has the absurd idea that I should only have 800 files. At this moment I am about 100 away from the limit. Lots of extra files will not help. Putting all the files in a cpio or ar archive would be great. Creating a new file format for this is fine as well. Elijah ------ has yet to learn perl