I'm trying to do a script that will look for a log file if it is already there change the name to another name.
I.E
if log.0 is there
rename to log.1
rename log.1 to log.2
rename log.2 to log.3 and so on.
Only thing is I got no idea where or what is the best command to use for this? ... (3 Replies)
We have to convert a sequential file to a 80 char line sequential file (HP UX platform).The sequential file contains special characters. which after conversion of the file to line sequential are getting coverted into "new line" or "tab" and file is getting distorted. Is there any way to read these... (2 Replies)
hello i'm trying to figure out how to number a blank line. For instance this :
sed '/./=' file | sed '/./N; s/\n/ /'
gives me
1 aaaa
2 bbbbbb
4 cccccc
5 ffkkkfff
6 ffsdfdfs
I would like something like this:
1 aaaaa
2
3 bbbbbb
4
5 cccccc
And so... (6 Replies)
Hi,
All I need to do is number a file.
The file looks like this
>
JJJJJJJJJJJJJJJJJJJJJ
>
JKJKJKKKKKKJJJ
>
MMMMYKKKJKKK
what I want to do is number it so that theres a numerical value beside the >.
>1
JJJJJJJJJJJJJJJJJJJJJ
>2
JKJKJKKKKKKJJJ (2 Replies)
Hi
I have a file sequential way i.e. written in contineous mode and the Record Seperator is AM from which the record is seperated .Now to process I have to make line sequential,and more over record length is not same it varies as per the input address,
AM1234563 John Murray 24 Old streeet old... (5 Replies)
Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX
I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Would it be possible for a script to duplicate a file and incrementally number it?
File in: XXX_007_0580_xxxx_v0016.aep
File out: XXX_007_0580_xxxx_v0017.aep
If someone knows of a way I'd love to see it.
Thanks! (7 Replies)
The awk below produces an output with the original header and only the matching lines (which is good), but the output where the original line numbering in the match found on is used. I can not figure out how to sequentially number the output instead of using the original.
I did try to add... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT DEBIAN
odmgr
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)