02-02-2012
Thanks a lot..
Hi,
I am working as Jr.Dba in one private company. I am working on some linux scripts (bash shell) which will automate dump import into database. Some clients will send more than ten dump files with their respective comapny name as file extension.
Ex: dell1.dmp, dell2.dmp.....dell33.dmp
Ex: hcl1.dmp, hcl2.dmp.....hcl33.dmp
Ex: cephlon1.dmp, cephlon2.dmp.....cephlon33.dmp
so i need common linux scripts which will sort alphanumeric file names based on last two digits or more usnig bash shell
Regards,
RK
---------- Post updated at 11:00 AM ---------- Previous update was at 10:12 AM ----------
Very nice...Thanq....
It is working fine if a copied dump files in sequence order, but if i copied random order then it showing wrong output.
Ex: file2, file3, file1,file4,file7,file9,file8....
Last edited by gramakrishna; 02-02-2012 at 01:42 AM..
Reason: another requirement
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I would like to arrange /sort filenames ending with suffix like ".00XXXX". where X is a digit. However the order of arrangement is in a text file and is 'harpharzard'. e.g the text file may be like
002345
009807
001145
I wanted to avoid doing this using sql and exporting the text file back to... (4 Replies)
Discussion started by: samudimu
4 Replies
2. Shell Programming and Scripting
I have a file I'm trying to sort such as
fred1
fred2
fred10
fred11
...
when I sort I get
fred1
fred10
fred11
fred2
...
using sort can any give me the syntax to sort this is dict order
e.g., (4 Replies)
Discussion started by: gefa
4 Replies
3. UNIX for Dummies Questions & Answers
Hi :)
I am writing a ksh
I have a string of general format
A12B3456CD78
the string is of variable length
the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7)
before these ending numbers are alphabets (here it is CD can even be... (3 Replies)
Discussion started by: lakshmikanth
3 Replies
4. Shell Programming and Scripting
I have a requirement where I need to check if
where r1v07l09ab is a software release.
I should always check for this to be true to continue the release deployment because an older release should not be deployed by mistake. I mean only the release greater than the current release should be... (3 Replies)
Discussion started by: rakeshou
3 Replies
5. UNIX for Advanced & Expert Users
Hi ,
I have a requirement where one column have to be sorted (delimiter is pipe)
for eg:
My input filed is as below
1|FIAT|0010103|23011|01/01/2000|31/12/9999|1.15
2|232|613|1
2|234|743|1
2|234|793|1
2|234|893|1
1|FIAT|0010103|23012|01/01/2000|31/12/9999|1.15
2|230|006|0
2|230|106|0... (9 Replies)
Discussion started by: laxmi131
9 Replies
6. Shell Programming and Scripting
Hi guys, I'm new to this forum and I'm not a UNIX expert. I can't figure out this certain problem i'm having:
I need to sort some words, some of the words are annotations (enclosed within < and >). I need to have them sorted alphabetically with all non-alphanumeric characters up front. For... (2 Replies)
Discussion started by: fed.m.ang
2 Replies
7. Shell Programming and Scripting
Hi!
Could anyone so kindly help me a code to eliminate from a txt file, obtained by collecting and merge several web-page, every word (string) containing non alphabetical, numeric and punctuation character (i.e NON a-zA-Z0-9, underscore and punctuation mark)?
Thanks a lot for the help to... (5 Replies)
Discussion started by: mjomba
5 Replies
8. Shell Programming and Scripting
Hi folks,
I have a value like A12,i could able to change this into integer using typeset as below
typeset -i A12
But, I need your advice to change the values like 1A2 or 12A into integer.
Thanks in advance.
Thanks,
Sathish (3 Replies)
Discussion started by: bsathishmca
3 Replies
9. Shell Programming and Scripting
Hi All
I've googled around for this and can't see a way of doing it.
I have a file that contains a number of records that are layed out something like the following.
/path/to/directory/that/contains/a/file/I/need/filename.pdf
The path itself can vary both in terms of the names and the... (7 Replies)
Discussion started by: Bashingaway
7 Replies
10. Shell Programming and Scripting
Good evening to all!!
I'm facing this problem:
I saved in a txt a list of files name (one txt for every folder):
hello0.jpg
hello1.jpg
hello10.jpg
hello11.jpg
hello12.jpg
hello13.jpg
hello14.jpg
hello15.jpg
hello16.jpg
hello17.jpg
hello18.jpg
hello19.jpg
hello2.jpg
hello20.jpg... (32 Replies)
Discussion started by: silver18
32 Replies
LEARN ABOUT DEBIAN
ann2fig
ANN2FIG(1) User Commands ANN2FIG(1)
NAME
ann2fig - Dump ANN tree structure in Fig format
SYNOPSIS
ann2fig [-upi scale] [-x low_x] [-y low_y]
[-sz size] [-dx dim_x] [-dy dim_y] [-sl dim value]*
[-ps pointsize] file
DESCRIPTION
This program inputs an ann dump file of a search structure perhaps along with point coordinates, and outputs a fig (Ver 3.1) file (see
fig2dev (1)) displaying the tree. The fig file may then be displayed using xfig, or converted to any of a number of other formats using
fig2dev.
If the dimension is 2 then the entire tree is displayed. If the dimension is larger than 2 then the user has the option of selecting which
two dimensions will be displayed, and the slice value for each of the remaining dimensions. All leaf cells intersecting the slice are
shown along with the points in these cells.
OPTIONS
-upi scale
fig units per inch (default = 1200)
-x low_x -y low_y
x and y offset of upper left corner (inches) (default = 1)
-sz size
maximum side length of figure (in inches) (default = 5)
-dx dim_x
horizontal dimension (default = 0)
-dy dim_y
vertical dimension (default = 1)
-sv value
default slice value (default = 0)
-sl dim value
each such pair defines the value along the given dimension at which to slice. This may be supplied for all dimensions except dim_x and
dim_y.
-ps pointsize
size of points in fig units (def = 10)
file
file (input=file.dmp, output=file.fig)
AUTHOR
David Mount
COPYRIGHT
This man page is Copyright (C) 2007 Rafael Laboissiere <rafael AT debian DOT org> and released under the GNU GPL, version 3 or later. It
was written for the Debian distribution but may be used by others.
SEE ALSO
fig2dev(1) ann_sample(1)
ANN 1.1.1 2011-12-10 ANN2FIG(1)