5
回答
linux中提取文本中指定的字符串
终于搞明白,存储TCO原来是这样算的>>>   

linux下,有如下文件内容:


dpkg:警告:files list file for package 'libclutter-1.0-0:i386' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libtext-wrapi18n-perl' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'slurm' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libfftw3-3:i386' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libbindex-java' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libnotify-bin' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'python-urllib3' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libbonoboui2-0:i386' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'mysql-client-core-5.5' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libslf4j-java' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libaspectj-java' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'deja-dup-backend-gvfs' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'tcpd' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libavutil-extra-51:i386' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'python-pkg-resources' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libgtkspell0' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libafpclient0:i386' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'ubuntu-release-upgrader-gtk' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libdb-je-java' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'libexempi3:i386' missing; assuming package has no files currently installed
dpkg:警告:files list file for package 'xserver-xorg-input-vmmouse' missing; assuming package has no files currently installed

怎么把单引号内的内容提取出来,输出到新的文件中呢?因为要用到单引号中的那些软件名。在下不知道怎么用合适的正则表达式
举报
好铁
发帖于4年前 5回/7K+阅
顶部