Check which shared libraries an executable file is lazy:
LDD commands are available for local executable files.
For cross-compiling, you can use arm-None-Linux-gnueabi-LDD to specify the root directory. You can use arm-None-Linux-gnueabi-LDD -- help to view help.
In addition, you can use: Arm-None-Linux-gnueabi-readelf-a test | grep shared # test is an executable file. In this way, test is a shared file that is directly lazy, there is no path.
Duplicate rows are often deleted during text processing. The following are three methods:
First, use sort + uniq. Note that uniq alone cannot be used.
Sort-N test.txt | uniq
Second, use the sort + awk command. Note that awk alone does not work, for the same reason.
Sort-N $ file | awk '{if ($0! = Line) print; line = $0 }'
Third, use the sort + sed command, which also requires the sort command to be sorted first.
Sort-N $ file | sed '$! N;/^ \ (. * \) \ n \ 1 $ /! P; D'