Search Results

Search: Posts Made By: jhamm
11,346
Posted By jhamm
your solution works ! thanks
Use braces around the variable names worked perfectly.
11,346
Posted By jhamm
put date and time in file name
no that did not work. only the HHMM appeared in the file name,

I used

DTSTAMP=$(date "+%Y%m%d")
HMSTAMP=$(date "+%H%M")
cp /fdb/prod/fdbadm/data/nassst115d01.txt...
11,346
Posted By jhamm
how do i put a time stamp in a file name
i want to copy a filea.dat to a file name in the format
of filea_yyyymmdd_hhmi.dat

using something like DTSTAMP=$(date "+%Y%m%d"),
which puts it in format filea_yyyymmdd.dat
7,565
Posted By jhamm
your solution was just what i needed, Thanks !!
thanks for the quick response
7,565
Posted By jhamm
how do I put a date and time in a file name
I want to copy a file to another file so that the current time and date are in the file name. For example I want to copy file profit.txt to a file name in the format
of profit_YYYYMMDDHHmm.txt ...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 08:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy