Xref: utzoo comp.unix.sysv386:3016 alt.unix.wizards:9 comp.lang.c:34749 Path: utzoo!attcan!uunet!samsung!usc!elroy.jpl.nasa.gov!ames!pasteur!scorpio!danabu From: danabu@scorpio.uucp (Daniel N. Abushanab) Newsgroups: comp.unix.sysv386,alt.unix.wizards,comp.lang.c Subject: Re: Packed C-structures in Interactive UNIX Summary: Shell programming question Keywords: Alignment, Padding, initialization. Message-ID: <9728@pasteur.Berkeley.EDU> Date: 13 Dec 90 18:44:15 GMT References: <741@jt.dk> Sender: news@pasteur.Berkeley.EDU Reply-To: danabu@scorpio.UUCP (Daniel N. Abushanab) Organization: University of California, Berkeley Lines: 13 I'm very new to shell programming, so maybe this is a stupid question, but I'll ask away anyway. I'm trying to write a script that will look in a directory, see how many files are in there, then randomly select one to be displayed as a background picture. Currently I'm using the time as a selection criterion, where a different picture is displayed depending on what time it is when the request is made. Not very elegant, but like I said, I'm new at this. Any help will be greatly appreciated. Thanks. ---------------------------------------------------------------------------- Daniel N. Abushanab University of California, Berkeley E-mail: danabu@scorpio.berkeley.edu Mechanical Engineering Department phone: (415) 642-5109