From suse-linux-e Mon May 06 16:34:32 2002 From: dids Date: Mon, 06 May 2002 16:34:32 +0000 To: suse-linux-e Subject: Re: [SLE] Easy shell script required.... create a unique filename X-MARC-Message: https://marc.info/?l=suse-linux-e&m=102100710914758 Thanks Christopher that is perfect !!! this is why linux/*nix is so great. dids > * dids (richard@diddyland.com) [020506 08:56]: > > I need to make a script > > that makes a filename based on todays date/time and then calls the > > program to record sound at that time ( program is called yarec ) > > > > $filename =3D time and date > > yarec $filename.wav > > #!/bin/sh > filename=3D"something-$(date +%Y%m%d)-$(date +%T)" > yarec $filename > #---- > > That will produce a file name that looks like: > something-20020506-09:14:39 > but you can format it however you'd like...see date(1). -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com