1 |
On Sun, Oct 9, 2011 at 10:02 AM, Dale <rdalek1967@×××××.com> wrote: |
2 |
> Michael Mol wrote: |
3 |
>> |
4 |
>> Came up with something possibly a little handier. This command should tell |
5 |
>> you what driver is associated with every device on the system. find |
6 |
>> /sys/devices -name driver -print0|xargs -0 ls -l|cut -d' ' -f10-|sed -e |
7 |
>> 's/\.\.\///g' Output could probably still be a bit better cleaned up, but it |
8 |
>> should help. |
9 |
> |
10 |
> Hmmmmmm: |
11 |
> |
12 |
> root@fireball / # find /sys/devices -name driver -print0|xargs -0 ls -l|cut |
13 |
> -d' '-f10-|sed -e 's/\.\.\///g' |
14 |
> cut: the delimiter must be a single character |
15 |
> Try `cut --help' for more information. |
16 |
> xargs: ls: terminated by signal 13 |
17 |
> root@fireball / # |
18 |
|
19 |
Your -f got stuck attached to the -d argument. |
20 |
|
21 |
Wordwrap reconstruction fail. :-| |
22 |
|
23 |
Try this for an alternate representation: |
24 |
|
25 |
find /sys/devices -name driver \ |
26 |
-print0|xargs -0 ls -l|cut -d' ' \ |
27 |
-f10-|sed -e 's/\.\.\///g' |
28 |
-- |
29 |
:wq |