05-08-2008
Quote:
Originally Posted by
adhit
rd=`date +%d/%m/%y`
echo $rd
hope that help
Well, yeah I guess it helped, but thats not the command I was looking for help with. I was looking for help with the datecalc script
9 More Discussions You Might Find Interesting
1. Solaris
Im trying to edit a 113 meg file in VI and i get the error TMP FILE TOO LARGE.
Does someone know how to get around this?
Thanks! (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
2. UNIX for Dummies Questions & Answers
Hello
if I like to move file from defined directories system to new directory that not contained any directories system structure .
But I like to create the same file system structure as source directory for example :
I have 2 directories: foo1 and foo2
foo1 have directories and foo2 have... (2 Replies)
Discussion started by: umen
2 Replies
3. UNIX for Dummies Questions & Answers
I was experimenting with redirection. Manual says
>&digit --> standard output is redirected to the file descriptor digit
I tried
exec 3>myout
exec >&3
This sent all the output to myout. Nothing was coming on the screen. I was thinking duplication will result in output similar to what... (7 Replies)
Discussion started by: ranj@chn
7 Replies
4. Shell Programming and Scripting
i have a script in bourne called cdrsnokia.sh and inside of it calls a script called resta_dias where it calls the datecalc script (perderabos date calculator).
The purpose is to rest (-) one day arithmetical operation the content of each line and the result is passed to another file lista2;after... (1 Reply)
Discussion started by: alexcol
1 Replies
5. Shell Programming and Scripting
Is there no simple way using 'date' command just to get number of days from given date.
ie. if I pass 2007-01-15 as an argument. I want to obtain result as 015
Simarly for 2007-02-10. I want to obtain result as 41.
Can't this be achieved by simple 1 or 2 lines of command (date). As this is... (1 Reply)
Discussion started by: tostay2003
1 Replies
6. UNIX for Dummies Questions & Answers
Hello:
I need to generate two datetimestamps in one hour apart.
the start date is 05262008000000
then generate the following dates
05262008010000
05262008020000
05262008030000
... ... ...
... ... ...
05262008230000
05272008000000
05272008010000
05272008020000
05272008030000
...... (5 Replies)
Discussion started by: ucbus
5 Replies
7. UNIX for Dummies Questions & Answers
I have a doubt in date conversion. Can anyone explain the logic behind the date2jd and jd2date in datecalc function specified in this forum. I could not understand what the number are actually representing. Please explain...bcoz i am doing a program with this one..
Note: No need to... (1 Reply)
Discussion started by: sivakumar.rj
1 Replies
8. Shell Programming and Scripting
i'm trying to parse a file with lines like the below where i need to get a diff on the 169-182 so that the result is 13 for instance. I was looking into using bc but am not that familiar with embedding it in a script.
john8:9. 169-182
any ideas are appreciated! (5 Replies)
Discussion started by: nlevens
5 Replies
9. Shell Programming and Scripting
Hi guys.
I am trying to subtract 10 minutes from the current Unix system date and time. I have the datecalc provided here but it is mainly the date and not the time. Please check on how can i subtract 10 minutes from the current time using datecalc or any other shell scripting that will... (2 Replies)
Discussion started by: bantiloe
2 Replies
LEARN ABOUT LINUX
debconf-set-selections
DEBCONF-SET-SELECTIONS(1) Debconf DEBCONF-SET-SELECTIONS(1)
NAME
debconf-set-selections - insert new default values into the debconf database
SYNOPSIS
debconf-set-selections file
debconf-get-selections | ssh newhost debconf-set-selections
DESCRIPTION
debconf-set-selections can be used to pre-seed the debconf database with answers, or to change answers in the database. Each question will
be marked as seen to prevent debconf from asking the question interactively.
Reads from a file if a filename is given, otherwise from stdin.
WARNING
Only use this command to seed debconf values for packages that will be or are installed. Otherwise you can end up with values in the
database for uninstalled packages that will not go away, or with worse problems involving shared values. It is recommended that this only
be used to seed the database if the originating machine has an identical install.
DATA FORMAT
The data is a series of lines. Lines beginning with a # character are comments. Blank lines are ignored. All other lines set the value of
one question, and should contain four values, each separated by one character of whitespace. The first value is the name of the package
that owns the question. The second is the name of the question, the third value is the type of this question, and the fourth value (through
the end of the line) is the value to use for the answer of the question.
Alternatively, the third value can be "seen"; then the preseed line only controls whether the question is marked as seen in debconf's
database. Note that preseeding a question's value defaults to marking that question as seen, so to override the default value without
marking a question seen, you need two lines.
Lines can be continued to the next line by ending them with a "" character.
EXAMPLES
# Force debconf priority to critical.
debconf debconf/priority select critical
# Override default frontend to readline, but allow user to select.
debconf debconf/frontend select readline
debconf debconf/frontend seen false
OPTIONS
--verbose, -v
verbose output
--checkonly, -c
only check the input file format, do not save changes to database
SEE ALSO
debconf-get-selections(1) (available in the debconf-utils package)
AUTHOR
Petter Reinholdtsen <pere@hungry.com>
2011-06-22 DEBCONF-SET-SELECTIONS(1)