Hi I was wondering if anyone knew the best way to have files displayed by list so that they were in numerical order?
the problem I am having is I am using the ls and the head command to sort a group of 500 files into manageable 133 file bunches and transfer them to another directory were they will be processed by another program.
This is an example of the file name "OPS-order-326-item-PM447_Quantity_6_of_500_front.p1.p1.pdf"
All the files stay in order until the Quantity number changes from one digit to two, then the sort displays with Quantity_2 next to Quantity_200
"OPS-order-326-item-PM447_Quantity_2_of_500_front.p1.p1.pdf being next to
"OPS-order-326-item-PM447_Quantity_200_of_500_front.p1.p1.pdf
Is there a better way to do this outside of having leading zeros in my quantity number?
Below is the command that I am using
Hi unfortunately that wont work is there a way I can use the version option to see just the OPS-order-326-item-PM447_Quantity_"2" or OPS-order-326-item-PM447_Quantity_"200" as the version number?
Thanks
Not sure if this will work:
should give you a list of the files in numeric order. You can then append the | xargs -I{} mv {} /A_place_to_put_somefiles bit if it works.
Input File:
E 3359799 3360148 350 X
D 3471287 3471607 321 X
E 3359799 3360740 942 X
E 4359790 4360039 250 X
.
.
.
Desired Output File:
E 3359799 3359998 200 X
E 3359999 3360148 150 X
D 3471287 3471486 200 X
D 3471487 3471607 121 X
E 3359799 3359998 200 X
E 3359999 3360198 200 X... (1 Reply)
Hello,
My OS is Windows and therefore DOS. Hence I have no access to Unix tools.
I am trying to sort a file in Urdu by the character by which it ends. Each word is on a separate line.
As input, an example in English would help:
fruit
banana
apple
pear
house
I need the sort to be on the... (5 Replies)
I am trying to sort a list
If you walk through the list, every you have passed both website1 and website2 and get back to website1, the last lines should be collected into one line and the process should start again.
The following:
http://www.website1.com
http://www.website1.com... (2 Replies)
Hi Folks
I am very much a newbie at perl but picking it up and I'm hoping you can help.
I have a file input that details all the /etc/group files in our enterprise in the following format: "<host>:<group>:<gid>:<users>"
I want to parse this data display it as the following:... (9 Replies)
Hi everyone, need your help in sorting and merging two numerical lists
Example:
I have one list 1 2 3 4 5 7 and the other 4 6 8, then the final output should be 1 2 3 4 5 6 7 8
Requesting your kind help in this
Regards,
RB :) (1 Reply)
File_A contains Strings:
a
b
c
d
File_B contains Strings:
a
c
z
Need to have script written in either sh or ksh. Derive resultant files (File_New_A and File_New_B) from lists File_A and File_B where string elements in File_New_A and File_New_B are listed below.
Resultant... (7 Replies)
Hi List is
000|2008-07-17|556543|RTJ|35-RTGJ|EYT
465|2008-11-10|567789|GHJ|45-DGHH|ETU
533|2008-09-06|567789|GHJ|45-DGHH|ETU
How does it do it?
sort -t ':' +0 -1 -n +1 -2 +2 -3 -o list list (6 Replies)