Article View: ca.unix
Article #139passing date to variable
From: hummbabe
Date: Sat, 13 May 2000 00:00
Date: Sat, 13 May 2000 00:00
12 lines
819 bytes
819 bytes
Hi, I'm trying to pass the current month and day to a variable for purposes of renaming and archiving files. here's the idea: #!/bin/sh v_date = date +%m%d mv file "file$v_date" I've tried various combinations of single and double quotes on both lines but with no success. Any help is greatly appreciated. Thanks in advance, Larry
Technical Details
Message-ID:
<391d7862.8563078@news.onemain.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10183f,3064a74fb26d2f96,start X-Google-Attributes: gid10183f,public From: hummbabe@hotmail.com Subject: passing date to variable Date: 2000/05/13 Message-ID: <391d7862.8563078@news.onemain.com> X-Deja-AN: 622959030 X-Trace: nntp2.onemain.com 958232357 216.224.177.74 (Sat, 13 May 2000 11:39:17 EDT) NNTP-Posting-Date: Sat, 13 May 2000 11:39:17 EDT Newsgroups: ca.unix X-Complaints-To: abuse@onemain.com