#! /usr/bin/env python
import os
import re
result = os.popen('ls -l /usr/bin')
contents = result.readlines()
for line in contents:
match = re.match(r'.*\s+(.*?)\s+->\s+(.*)', line.strip())
if match is not None:
print match.group(1),'->',match.group(2)
linux查找符号文件以及其映射
最新推荐文章于 2023-01-28 16:18:50 发布