1 |
Hi, |
2 |
|
3 |
I am having a problem doing a simple sort. The sorting just does not |
4 |
work with the command sort. |
5 |
|
6 |
In a directory are the following files, |
7 |
|
8 |
access.log.0 |
9 |
access.log.1 |
10 |
access.log.10 |
11 |
access.log.11 |
12 |
access.log.12 |
13 |
access.log.13 |
14 |
access.log.14 |
15 |
access.log.15 |
16 |
access.log.16 |
17 |
access.log.17 |
18 |
access.log.18 |
19 |
access.log.19 |
20 |
access.log.2 |
21 |
access.log.20 |
22 |
access.log.21 |
23 |
access.log.3 |
24 |
access.log.4 |
25 |
access.log.5 |
26 |
access.log.6 |
27 |
access.log.7 |
28 |
access.log.8 |
29 |
access.log.9 |
30 |
|
31 |
Did the following command, |
32 |
|
33 |
#ls access.log.* | sort -n +0.11 |
34 |
|
35 |
Got the following error, |
36 |
#sort: open failed: +0.11: No such file or directory |
37 |
|
38 |
What am I doing wrong? |
39 |
|
40 |
Tried puting the list of files into a file called "testing" then did the |
41 |
following command, |
42 |
#sort -n +0.11 testing |
43 |
|
44 |
Still same error, |
45 |
#sort: open failed: +0.11: No such file or directory |
46 |
|
47 |
How to correct this? |
48 |
|
49 |
P.V.Anthony |