Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Creating a file with the date in it Post 2350 by alwayslearningunix on Wednesday 9th of May 2001 05:12:01 AM
Old 05-09-2001
hey n9ninchd
I'm not sure if I understood your question, but if you just want the numerical date format you can just specify the date command to be format thus:

`date "+%m%d%y"` which will return 050901 for example (todays date - 9th May 2001)

Hope this helps.

Regards
alwayslearningunix
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating file with date/timestamp in it

I need to create a file through a c-shell script which contains only the date and time that the file was created. Does anyone know a simple way to do this? Thank you, Paula (7 Replies)
Discussion started by: ccpjr29
7 Replies

2. Shell Programming and Scripting

Shell script for Creating Directory with name as system date

Dear Sir/Madam, I need a bit of your help. The problem is as follows : I have to create a directory in unix whose name is that of system date in the dd_mon_yyyy format . I am able to extract a date in required format ina variable , but when i'm using this variable in mkdir it is not... (7 Replies)
Discussion started by: aarora_98
7 Replies

3. Shell Programming and Scripting

creating a new file with date stamp

Hi, can any one tell me how to achieve this...I will input the path and file name and it should rename it to current date and time... this is what I tried... #! /usr/bin/sh set -x cd /info_stg/vul/Scripts TODAY_DATE_TIME=`date +%Y%m%d%H%M%S` IN_FILE_PATH=`cat file.txt | awk -F, '{... (2 Replies)
Discussion started by: mgirinath
2 Replies

4. Shell Programming and Scripting

Need help on creating a file everday with current date

Hi Friends/Team, I have written a small script but I dont understand what is the mistake in this one.. please help me identify and correct it. file="touch `date +%b_%d`" for i in $(cat /home/gmanju/servers) do echo $i >>file remsh $i cat /var/opt/omni/server/log/opcmsg.log | grep -i... (1 Reply)
Discussion started by: gmanjunathbe
1 Replies

5. Shell Programming and Scripting

Creating a date (without time) in perl

I have a perl script that automatically runs on Mondays. I need to have it create a variable for last Monday's date thru that Sunday's date. example: 04-01-2011 thru 04-08-2011 Its reporting numbers for the previous week beginning with Monday and ending on Sunday. So i dont have to go in... (7 Replies)
Discussion started by: bbraml
7 Replies

6. Shell Programming and Scripting

creating a file name based on date

I need to automate a weekly process of piping a directory list to a csv file. Normally I do ls -l > files_04182010.csv (04182010 being the date..) Can someome show me how I would script this, so that when the script is ran it grabs the current date and formats it and allows me to use that... (8 Replies)
Discussion started by: jeffs42885
8 Replies

7. Shell Programming and Scripting

Help with creating a text file in perl with file creation date.

Hi, I am quite new to Perl scripting and i need to create a .TXT file using perl, with fields (A,B,C,D,E), and this text file should be named with current file creation date "XYZ_CCYYMMDD.TXT" (i.e.XYZ_2011042514:33 PM). Can anyone who has done this, please share their expertise on this... (5 Replies)
Discussion started by: msrahman
5 Replies

8. Shell Programming and Scripting

finding the previous day date and creating a file with date

Hi guys, I had a scenario... 1. I had to get the previous days date in yyyymmdd format 2. i had to create a file with Date inthe format yyyymmdd.txt format both are different thanks guys in advance.. (4 Replies)
Discussion started by: apple2685
4 Replies

9. UNIX for Dummies Questions & Answers

Creating a directory based on date

I want to create a directory based on date. I do not have date -d command. What I do have is: either use "date" command to get current date or DATE1=$(perl -e 'print scalar(localtime(time - 1 )), "\n";' |awk '{print $2,$3,$5}') |awk '{print $3}'can be modified to produce the desired year.... (3 Replies)
Discussion started by: newbie2010
3 Replies

10. UNIX for Beginners Questions & Answers

Creating dir with date and then increment by 1

Hi, I can't seem to do this or find how to do it. Can someone please help: I have a dir and within it I have dirs with date name example Test1/ 2017-08-12 2017-09-13 2017-10-14 2017-11-15 2017-11-16 what I want is a a script to scan the above and then take 2017-11-16 and increase this... (10 Replies)
Discussion started by: israr75
10 Replies
GPODDER-BACKUP(1)						   User Commands						 GPODDER-BACKUP(1)

NAME
gpodder-backup - Backup and restore utility for gPodder user data SYNOPSIS
gpodder-backup [--create|--extract] <archive.gpo.tar.gz> [options] gpodder-backup --purge DESCRIPTION
This utility can be used to create a dump of the current gPodder data (configuration files + downloads), optionally replacing the real con- tents of the download folder with zero-byte files (for submitting your data to a bug report without having to transfer lots of data). OPTIONS
--version show program's version number and exit -h, --help show this help message and exit -c <FILE>, --create=<FILE> Create a new archive -x <FILE>, --extract=<FILE> Extract an existing archive -f, --fake-downloads Store downloads as zero-byte files in backup -n, --no-covers Do not include cover files in archive -D <DIR>, --destination=<DIR> Extract downloads in different folder -P, --purge Remove current data (can be combined with --extract) USAGE FOR BUG REPORTING
This command is useful if you want to report a bug in gPodder: gpodder-backup --create bug123.gpo.tar.gz --fake-downloads Backup your current data to file bug123.gpo.tar.gz, but don't store download data (create zero-size dummy files instead). You can then attach bug123.gpo.tar.gz to the bug report. If you are instructed to try gPodder from a "clean state", you can use the following command (be sure to backup your data before!): gpodder-backup --purge Remove all gPodder data, so you can start from a clean state EXAMPLES
gpodder-backup --create today.gpo.tar.gz Backup your current data to file today.gpo.tar.gz gpodder-backup --extract mybackup.gpo.tar.gz Restore (without purging) the contents of mybackup.gpo.tar.gz gpodder-backup --extract default.gpo.tar.gz --purge Remove current data, then restore the contents of default.gpo.tar.gz gpodder-backup --purge Remove all gPodder data, so you can start from a clean state EXTRACTING FAKED DOWNLOADS
Please note that any existing downloads will be overwritten with zero-byte files when using the --extract option of the gpodder-backup utility with a backup created with --fake-downloads AUTHOR
gpodder-backup was written by Thomas Perl (thp@gpodder.org) gpodder-backup 1.0 December 2010 GPODDER-BACKUP(1)
All times are GMT -4. The time now is 09:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy