02-20-2013
date is a command like any other command, and therefore needs a space behind it if you provide arguments (in this case '+%d-%b-%Y')
This User Gave Thanks to Subbeh For This Post:
10 More Discussions You Might Find Interesting
1. Programming
Hi ...
I am having a string in the buffer .. It is binary data it may contain space . When i try to append a space in using strcpy it is taking the inbetween \n as the end and appending space ..
How to append space in the binary data in C ?? please let me know
Thanks in advance,
Arun. (2 Replies)
Discussion started by: arunkumar_mca
2 Replies
2. UNIX for Dummies Questions & Answers
hi freinds,
i need to append timestamp to a file name to make it unique...
do we have any command in unix to do
please help :confused: (2 Replies)
Discussion started by: madhu_aqua14
2 Replies
3. Shell Programming and Scripting
Hi
I need to write a script where there the user enters 3 input parameter
variable
number
the program should ask the user left or right
if it is left , the number specified that many spaces should be added to the value in front of the value and saved in the samee variable itself and if it is... (5 Replies)
Discussion started by: viv1
5 Replies
4. Shell Programming and Scripting
I am calling SQL script in my UNIX Shell script and trying to create the CSV file and my last column value of each row is 23 blank spaces.
In my SQL script,the last column is like below.
RPAD(' ',23,' ') -- Padding 23 blank Spaces
The CSV file is generated but the sapce(23 spaces) is... (2 Replies)
Discussion started by: praka
2 Replies
5. Shell Programming and Scripting
Hi,
I've a file in the following format
1999-APR-8 17:31:06 1500 3 45
1999-APR-8 17:31:15 1500 3 45
1999-APR-8 17:31:25 1500 3 45
1999-APR-8 17:31:30 1500 3 45
1999-APR-8 17:31:55 1500 3 45
1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am trying to insert a timestamp after all the file names in a folder,after the timestamp is created in the filename the file size is becoming zero bytes.
please tell me where I am doing it wrong.
I have declared the variable in starting of my script.
timestamp=`date... (1 Reply)
Discussion started by: shruthidwh
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix programming. I am trying for a requirement and the requirement goes like this.....
I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies
8. Shell Programming and Scripting
I have a statistical file populating every minute as below:
2011-11-11-1108 1955 891
2011-11-11-1109 2270 1049
2011-11-11-1110 1930 904
2011-11-11-1111 2030 931
2011-11-11-1112 1944 900
2011-11-11-1113 1922 875
Instead of having the date and time in the given format (2011-11-11-1113) I... (10 Replies)
Discussion started by: thinktank
10 Replies
9. Shell Programming and Scripting
Hi,
I want write a script that finds a set of folders written between a certain time and then find the disk space used by those folders. Can someone please help.
Thanks,
Sparcman:( (1 Reply)
Discussion started by: sparcman
1 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
LEARN ABOUT DEBIAN
cooktime
COOKTIME(1) General Commands Manual COOKTIME(1)
NAME
cooktime - set file times
SYNOPSIS
cooktime [ option... ] filename...
cooktime -Help
cooktime -VERSion
DESCRIPTION
The cooktime program is used to set the modified time or access time of a file. This can be used to defend against unwanted logical
dependencies when making "minor" changes to files.
If no option is specified, the default action is as if "-Modify now" was specified.
OPTIONS
The following options are understood.
-Access date
This option may be used to set the last-access time of the files. The date is relatively free-format; rember to use quotes to
insulate spaces from the shell.
-Modify date
This option may be used to set the last-modify time of the files. The date is relatively free-format; rember to use quotes to
insulate spaces from the shell.
-Time-Stamp-Granularity seconds
This option may be used to specify the granularity of the filesystem's timestamps, otherwise a default value of 1 second is used.
-Report
When use alone, produces a listing of access times and modify times for the named files. When used with -Access or -Modify,
produces a listing of the changes made.
-Help
Give some information on how to use the cooktime command.
Any other option will generate a diagnostic error.
All options may be abbreviated; the abbreviation is documented as the upper case letters, all lower case letters and underscores (_) are
optional. You must use consecutive sequences of optional letters.
All options are case insensitive, you may type them in upper case or lower case or a combination of both, case is not important.
For example: the arguments "-help", "-HEL" and "-h" are all interpreted to mean the -Help option. The argument "-hlp" will not be
understood, because consecutive optional characters were not supplied.
Options and other command line arguments may be mixed arbitrarily on the command line.
The GNU long option names are understood. Since all option names for cooktime are long, this means ignoring the extra leading '-'. The
"--option=value" convention is also understood.
EXIT STATUS
The cooktime command will exit with a status of 1 on any error. The cooktime command will only exit with a status of 0 if there are no
errors.
COPYRIGHT
cooktime version 2.33
Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
2008, 2009 Peter Miller
The cooktime program comes with ABSOLUTELY NO WARRANTY; for details use the 'cooktime -VERSion License' command. This is free software
and you are welcome to redistribute it under certain conditions; for details use the 'cooktime -VERSion License' command.
AUTHOR
Peter Miller E-Mail: pmiller@opensource.org.au
//* WWW: http://miller.emu.id.au/pmiller/
Reference Manual Cook COOKTIME(1)