10-29-2009
its giving error
date error: Syntax: date [ mm-dd-yy ] [ hh:mm:ss ]
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
It's possible to use "find" to search a file that was modified for example between 5/10/2004 and 7/11/2005? How can i do this? I saw there is option -mtime, but i don't understand how to use it in this case. Thanks (4 Replies)
Discussion started by: Kaminski
4 Replies
2. Shell Programming and Scripting
I found this code on here in another thread (which I can't find now). The code works on normal text, but not for a date in the format of "mm/dd/yyyy". I assume it has to do with the "/". I am using korn shell. Any ideas?
sed 's/${OldDate}/${NewDate}/g' < file > file.new
mv file.new file (2 Replies)
Discussion started by: stringzz
2 Replies
3. Shell Programming and Scripting
I have an issue regarding searching for old dates.
At the moment I search a field within a file for the last 3 days from the system date:
using today as 25/02/2010
DD=$(expr `date +%d` - 1)
DD1=$(expr `date +%d` - 2)
DD2=$(expr `date +%d` - 3)
MTH=`date +"%m"`
YR=`date +"%Y"`... (2 Replies)
Discussion started by: Pablo_beezo
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I would like to search the pattern based on the date like "2010/08/15". I tried using / in the file giving /<<pattern>>. when i tried this it turns to /2010/+8, but not going to the pattern what ever i want.
This is how the data in the file.
INFO | jvm 1 | 2010/05/26 13:30:33... (5 Replies)
Discussion started by: venkatesht
5 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
i have tons of files in folder named like this (yyyymmdd):
bookcollection20100729
bookcollection20100730
bookcollection20100731
bookcollection20100801
bookcollection20100802
etc.
I need to find files with date range in there names lets say from 2010.07.30 - 2010.08.02
... (10 Replies)
Discussion started by: Whit3H0rse
10 Replies
6. Shell Programming and Scripting
Dear Friends,
Following is manupulated output of our script.
e.g.
lkme_lpst 2
Pur_dt 31/12/2011
bl_dt 01/02/2011
rt_dt 02/02/2011
prod_btch 19/1452147-5210
We further want to manupulate it and want to replace / by -
i.e.
Lkme_lpst 2
Pur_dt 31-12-2011
bl_dt 01-02-2011... (7 Replies)
Discussion started by: anushree.a
7 Replies
7. Shell Programming and Scripting
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
Discussion started by: 2001.arun
10 Replies
8. Shell Programming and Scripting
Hello,
Iam a newbies to Shell scripting. Iam trying to replace the date inside the file to new date. is there anyway that we can just use the pattern to search as "..." I have many files want to replace with the same date, and each file contains different date.
Thanks for your help.
... (2 Replies)
Discussion started by: Daro
2 Replies
9. Shell Programming and Scripting
Hello,
I have files that with a naming convention as shown below. Some of the files have dates in the file name and some of them don't have dates in the file name.
imap-hp-import-20150917.txt
imap-dell-gec-import-20150901.txt
imap-cvs-import-20150915.txt
imap-gec-import.txt... (8 Replies)
Discussion started by: Saanvi1
8 Replies
10. Shell Programming and Scripting
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
ODMGR(1) Quick Database Manager ODMGR(1)
NAME
odmgr - administration utility for QDBM Odeum
SYNOPSIS
odmgr create name
odmgr put [-uri str] [-title str] [-author str] [-date str] [-wmax num] [-keep] name [file]
odmgr out [-id] name expr
odmgr get [-id] [-t|-h] name expr
odmgr search [-max num] [-or] [-idf] [-t|-h|-n] name words...
odmgr list [-t|-h] name
odmgr optimize name
odmgr inform name
odmgr merge name elems...
odmgr remove name
odmgr break [-h|-k|-s] [file]
odmgr version
DESCRIPTION
This manual page documents briefly the odmgr commands.
odmgr is a utility for debugging Odeum and its applications. It features editing and checking of a database. It can be used for full-text
search systems with shell scripts. This command is used in the above format. name specifies a database name. file specifies a file name,
expr specifies the URI or the ID number of a document, words specifies searching words. elems specifies element databases.
OPTIONS
A summary of options is included below. For a complete description, see the file:///usr/share/doc/qdbm-doc/spex.html#odeumcli .
-uri specify the URI of the document explicitly.
-title str
specify the title of the document.
-author str
specify the author of the document.
-date str
specify the modified date of the document.
-wmax num
specify the max number of words to be stored.
-keep the storing mode is not to be overwrite.
-id specify a document not by a URI but by an ID number.
-t output the details of a document in tab separated format.
-h output the details of a document in human-readable format.
-k output keywords of a document.
-s output summary of a document.
-max num
specify the max number of documents of the output.
-or perform OR search, nut AND search.
-idf tune scores with IDF.
-n show ID numbers and scores only.
SEE ALSO
qdbm(3), odidx(1), odeum(3). odopen(3).
AUTHOR
QDBM was written by Mikio Hirabayashi <mikio@fallabs.com>.
This manual page was written by Fumitoshi UKAI <ukai@debian.or.jp>, for the Debian project (but may be used by others).
Man Page 2005-05-23 ODMGR(1)