|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
File Name Format in Shell Script
Hi,
I am receiving a file as output of the execution of a shell script. It's name is in the format outlist.lst. However, I would like it to be of the format mmddyyyy24mmss.dat. How can I accomplish this? Any pointers would be greatly appreciated. Thanks, Sankar. |
|
#2
|
|||
|
|||
|
RE: File Name Format in Shell Script
Is the shell script yours or are you receiving it from someone else? Do you have shell access?
|
|
#3
|
|||
|
|||
|
RE: File Name Format in Shell Script
Well, you would need to look at the shell script and see where it is returning that name and modify it accordingly. If you want to post the _relevant_ (read: not all) code, we can look at it for you..
|
|
#4
|
|||
|
|||
|
RE: File Name Format in Shell Script
substitute this string where the output file is defined (if you are able to do so)
DATE=`date +%m%d%Y%H%M%S.dat` >$DATE You can substitute $DATE, for what ever variable the script uses. Hope this helps, Eric |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > File Name Format in Shell Script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|