Sponsored Content
Top Forums Shell Programming and Scripting problem in making file name from date command Post 302166854 by girish.batra on Wednesday 13th of February 2008 01:49:41 AM
Old 02-13-2008
problem in making file name from date command

Dear all

I am bit new to programming. I have to redirect the output to a file which will be in the following format

man ls> date +"hup-%m%d%y-%H%M" --------> this will show me the month,day,year,hours and minute in a file name whose name start from "hup-"

kindly any correct my syntax
 

10 More Discussions You Might Find Interesting

1. Programming

DDD making problem

Hi Everybody, I am trying to make the ddd-3.3.9 debugger. I installed all dependencies. this is what i get: # make Making all in themes make: Entering directory `/space/atoulan/ddd-3.3.9/themes' make: Nothing to be done for `all'. make: Leaving directory... (0 Replies)
Discussion started by: azazel11998
0 Replies

2. UNIX for Dummies Questions & Answers

Problem with date command

Hi, I wish to display date say 25th Jan, 2008 in format '25-1-2008' i.e. month should be displayed as '1' and not '01'. I wish that 0 should not be displayed in month. Thanks Rochit (4 Replies)
Discussion started by: rochitsharma
4 Replies

3. UNIX for Dummies Questions & Answers

problem while making ftp of a large file

Hi Friends, I'mfacing a problem while doing ftp of a large file.The control session is getting closed after sometime.But data session transfers the file successfully even when the control seeion is lost.I need to make the control session available as long as data session is active. How can i... (1 Reply)
Discussion started by: rprajendran
1 Replies

4. Shell Programming and Scripting

Problem with o/p of date command.......

Hii.. Everyone : I have 15 Sun Servers with Solaris-10, Now on some of the servers when I execuit the command "date" I get following o/p : # date Wed Sep 10 22:29:37 IST 2008 And on some of Servers I am getting : # date Wednesday, September 10, 2008 10:23:47 PM IST Kindly see... (3 Replies)
Discussion started by: prashantshukla
3 Replies

5. Shell Programming and Scripting

Problem in making itration

Hi, I have a file which keeps on appending the data continuously, i that i am looking for a particular pattern, if i dont find that pattern i want to wait for 30 seconds to check it again. can we use it like this ----------------------------- until do cat $line |... (1 Reply)
Discussion started by: Prateek007
1 Replies

6. Shell Programming and Scripting

Problem in making a list with awk

Hi bodies,I am doing a list from a .txt file with awk commands but something is wrong. The .txt file looks like: 32782 28 18 32783 02 18 32784 01 18 32785 29 18 32786 25 23 32787 25 18 32788 00 18 32789 25 26 32790 02 23 32791 29 26 ... (2 Replies)
Discussion started by: Behrouzx77
2 Replies

7. Shell Programming and Scripting

Cron Job - date command problem

Hi I have one problem with cron job in Control Panel. I have a log file that is created once a day on another server and I need to transfer it in an exact time to my server so I wrote the cron job for it BUT the problem is in the date command: /filelog-`date +%Y-%m-%d`.tar.gz; The file... (1 Reply)
Discussion started by: bobo_balde
1 Replies

8. Shell Programming and Scripting

Problem with the date command

i cant seem to figure out why this isn't working: root@jlota-Box1:~# date "%b %d %H:%M %Y" --date "Feb 08 00:57 2014 EDT +1 min" date: invalid date ‘Feb 08 00:57 2014 EDT +1 min' OS: Linux (ubuntu,redhat,sunos) (4 Replies)
Discussion started by: SkySmart
4 Replies

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

10. Linux

Problem with date command

Hello, Can anyone have an idea what is wrong with this code: $ YESTERDAY=$(date -d "yesterday" '+%Y-%m-%d 07:00:00') $ echo $YESTERDAY 2016-12-26 07:00:00 $ date -d '($YESTERDAY)' +"%s000" 1482793200000 1482793200000 is not correct, it should be: 1482732000000 Result when... (2 Replies)
Discussion started by: chrz
2 Replies
holidays(4)							   File Formats 						       holidays(4)

NAME
holidays - prime/nonprime table for the accounting system SYNOPSIS
/etc/acct/holidays DESCRIPTION
The /etc/acct/holidays file describes which hours are considered prime time and which days are holidays. Holidays and weekends are con- sidered non-prime time hours. /etc/acct/holidays is used by the accounting system. All lines beginning with an "*" are comments. The /etc/acct/holidays file consists of two sections. The first non-comment line defines the current year and the start time of prime and non-prime time hours, in the form: current_year prime_start non_prime_start The remaining non-comment lines define the holidays in the form: month/day company_holiday Of these two fields, only the month/day is actually used by the accounting system programs. The /etc/acct/holidays file must be updated each year. EXAMPLES
Example 1: Example of the /etc/acct/holidays file. The following is an example of the /etc/acct/holidays file: * Prime/Nonprime Table for the accounting system * * Curr Prime Non-Prime * Year Start Start * 1991 0830 1800 * * only the first column (month/day) is significant. * * month/day Company Holiday * 1/1 New Years Day 5/30 Memorial Day 7/4 Indep. Day 9/5 Labor Day 11/24 Thanksgiving Day 11/25 day after Thanksgiving 12/25 Christmas 12/26 day after Christmas SEE ALSO
acct(1M) SunOS 5.10 28 Mar 1991 holidays(4)
All times are GMT -4. The time now is 06:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy