10-20-2011
conversion of input date in reverse order
Dear all,
I am having date as input 01-08-2011 ...i want to convert it by removing - (hyphens) in reverse order...i.e 20110801
can u please help me
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I a file with log entries... I want to sort it so that the last line in the file is first and the first line is last..
eg.
Sample file
1
h
a
f
8
6
After sort should look like
6
8
f
a
h
1 (11 Replies)
Discussion started by: frustrated1
11 Replies
2. UNIX for Dummies Questions & Answers
I need to sort the particular column only in reverse order how i can give it..
if i give the -r option the whole file is getting sorted in reverse order.
1st 2nd col 3rd
C col 4th col 5th col
-------------------------------------------
C... (7 Replies)
Discussion started by: sivakumar.rj
7 Replies
3. Shell Programming and Scripting
Hi Everyone,
I have one a.txt:
a b 001 c
b b 002 c
c c, not 002 c
The output should be
001
002
002
If i use cut -f 3 -d' ', this does not work on the 3rd line, so i thought is any way to cut the field counting from the end? or any perl thing can do this?:confused:
... (3 Replies)
Discussion started by: jimmy_y
3 Replies
4. Shell Programming and Scripting
i am having lines like below seperated by "|" (pipe)
abc|xyz
123|567
i have to get the above in reverse order
xyz|abc
567|123
Pls help (5 Replies)
Discussion started by: suryanarayana
5 Replies
5. UNIX for Dummies Questions & Answers
command/script(apart from awk) to print the fields in reverse order
that is last field has to come first and so on and first field has to go last
Input
store-id date sale
.............
.............
... (3 Replies)
Discussion started by: tsurendra
3 Replies
6. Shell Programming and Scripting
Hi,
I want to print the item in reverse order such that the output would look like
00 50 50 23 40 22 02 96
Below is the input:
00 05 05 32 04 22 20 69
Video tutorial on how to use code tags in The UNIX and Linux Forums. (5 Replies)
Discussion started by: reignangel2003
5 Replies
7. Shell Programming and Scripting
Hello,
I have a large database of words and would like them sorted in reverse order i.e. from the end up.
An example will make this clear:
I have tried to write a program in Perl which basically takes the string from the end and tries to sort from that end but it does not seem... (5 Replies)
Discussion started by: gimley
5 Replies
8. Shell Programming and Scripting
Hi all,
i have dynamic file 'xyz.txt', records always look likes below format ...
0000021 RET 31-MAR-1984 FAP
0000021 DTA 14-JAN-2003 CNV
0000021 DTA 25-MAR-2012 DTA
0000021 DTA 26-MAR-2012 DTA
#################################################
0000021 DTA ... (4 Replies)
Discussion started by: krupasindhu18
4 Replies
9. UNIX for Beginners Questions & Answers
I have a unix script that outputs a summary file to the mac desktop.
The file is called summary.txt
I am trying to configure such so that the summary.txt file lists the content contained within such in reverse sort order.
I have used sort -r but it does not seem to work.
I would be... (8 Replies)
Discussion started by: Braveheart
8 Replies
LEARN ABOUT DEBIAN
ltdbtool
LTDBTOOL(1) LTDBTOOL(1)
NAME
ltdbtool - handle ctdb's local tdb copies
SYNOPSIS
ltdbtool [OPTIONS] COMMAND
DESCRIPTION
ltdbtool is a utility to cope with ctdb's local tdb copies (LTDBs) without connecting to a ctdb daemon.
It can be used to
o dump the contents of a LTDB, optionally printing the ctdb record header information,
o convert between an LTDB and a non-clustered tdb by adding or removing ctdb headers and
o convert between 64 and 32 bit LTDBs where the ctdb record headers differ by 4 bytes of padding.
COMMANDS
help
Print a help text.
dump <IDB>
Dump the contents of a LTDB file to standard output in a human-readable format.
convert <IDB> <ODB>
Make a copy of a LTDB optionally adding or removing ctdb headers.
OPTIONS
-p
Dump with header information, similar to "ctdb catdb".
-s {0|32|64}
Specify how to determine the ctdb record header size for the input database:
0
no ctdb header
32
ctdb header size of a 32 bit system (20 bytes)
64
ctdb header size of a 64 bit system (24 bytes)
The default is 32 or 64 depending on the system architecture.
-o {0|32|64}
Specify how to determine the ctdb record header size for the output database, see -s
-S <SIZE>
Explicitly specify the ctdb record header size of the input database in bytes.
-O <SIZE>
Explicitly specify the ctdb record header size for the output database in bytes.
-h
Print a help text.
EXAMPLES
Print a local tdb in "tdbdump" style:
ltdbtool dump idmap2.tdb.0
Print a local tdb with header information similar to "ctdb catdb":
ltdbtool dump -p idmap2.tdb.0
Strip the ctdb headers from records:
ltdbtool convert -o0 idmap2.tdb.0 idmap.tdb
Strip 64 bit ctdb headers from records, running on i386:
ltdbtool convert -s64 -o0 idmap2.tdb.0 idmap.tdb
Strip the ctdb headers from records by piping through tdbrestore:
ltdbtool dump idmap2.tdb.0 | tdbrestore idmap.tdb
Convert a local tdb from a 64 bit system for usage on a 32 bit system:
ltdbtool convert -s64 -o32 idmap2.tdb.0 idmap2.tdb.1
Add a default header:
ltdbtool convert -s0 idmap.tdb idmap2.tdb.0
SEE ALSO
ctdbd(1), ctdb(1), tdbdump(1), tdbrestore(1), http://ctdb.samba.org/
COPYRIGHT
/LICENSE
Copyright (C) Gregor Beck 2011
Copyright (C) Michael Adam 2011
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see http://www.gnu.org/licenses/.
05/04/2011 LTDBTOOL(1)