The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-02-2005
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,125
pls for the future..... use VBcodes to properly format your posting - you can click on the on the bottom left of the window "Posting rules" to get the details of the VB codes

this reassigns the value of 'filedate' to a variable 'date'

Code:
date=$filedate
this assigns the return value of the command 'date' to a variable 'fdate'
Code:
fdate=`date +%Y%m%d%H%M%S` (#PROBLEM? here date is not getting $filedate value. It still picks up the current date value. Don't know why?)
The code behaves as implemented. I think you're having something else in mind.