Sponsored Content
Top Forums Shell Programming and Scripting creating a file name based on date Post 302514992 by pludi on Monday 18th of April 2011 04:08:57 PM
Old 04-18-2011
man date
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Creating a file with the date in it

I would like to create an archive of backup files In doing so I would like to be able to create a file basically called filname.`date`.arch With each try I get something completly different - so how do I get just say zip the entire directory > filename.may092001.arch Any ideas - I... (3 Replies)
Discussion started by: n9ninchd
3 Replies

2. 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

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

Creating a csv file based on Existing file

Hi I am Newbie to Unix.Appreciate Help from forum user would loada b.Csv File(Below example) in /data/m/ directory.Program need to read the b.csc to extract certain column and create a new file /data/d/ directory as csv file with new name. User File Format 1232,samshouston,12345... (3 Replies)
Discussion started by: skywayterrace
3 Replies

5. 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

6. Shell Programming and Scripting

Creating subset of a file based on specific columns

Hello Unix experts, I need a help to create a subset file. I know with cut comand, its very easy to select many different columns, or threshold. But here I have a bit problem as in my data file is big. And I don't want to identify the column numbers or names manually. I am trying to find any... (7 Replies)
Discussion started by: smitra
7 Replies

7. Shell Programming and Scripting

Script to determine Date,TotalFile,total size of file based on date

I have file listed like below -rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz -rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz -rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz -rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz -rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz I... (5 Replies)
Discussion started by: krish2014
5 Replies

8. Shell Programming and Scripting

Help with Creating file based on conditions

Can anyone please assist? I have a .txt file(File1.txt) and a property file(propertyfile.txt) . I have to read the vales from the property file and .txt file and create the output file(outputfile.txt) mentioned in the attachment. For each record in .txt file,the below mentioned values shall be... (20 Replies)
Discussion started by: vinus
20 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. HP-UX

HP/UX command to pull file name/date based on date

HI, Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
Discussion started by: lnemitz
2 Replies
MAN(1)							      General Commands Manual							    MAN(1)

NAME
man, lookman - print or find pages of this manual SYNOPSIS
man [ option ... ] [ section ... ] title ... lookman key ... DESCRIPTION
Man locates and prints pages of this manual named title in the specified sections. Title is given in lower case. Each section is a num- ber; pages marked (2S), for example, belong to chapter 2. If no section is specified, pages in all sections are printed. Any name from the NAME section at the top of the page will serve as a title. The options are: -p Run proof(1) on the specified man pages. -t Run troff and send its output to standard output. -n (Default) Print the pages on the standard output using nroff. Lookman prints the names of all manual sections that contain all of the key words given on the command line. FILES
/sys/man/?/* troff source for manual; this page is /sys/man/1/man /sys/man/?/INDEX indices searched to find pages corresponding to titles /sys/lib/man/secindex command to make an index for a given section /sys/lib/man/lookman/index index for lookman SOURCE
/rc/bin/man /rc/bin/lookman SEE ALSO
proof(1) BUGS
The manual was intended to be typeset; some detail is sacrificed on text terminals. There is no automatic mechanism to keep the indices up to date. Except for special cases, it doesn't recognize things that should be run through tbl and/or eqn. MAN(1)
All times are GMT -4. The time now is 08:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy