- 论坛徽章:
- 145
|
hi ,
想 问 一个 多行 批配 的 问题, 字符串如下 :
The following packages have unmet dependencies:
...
hepower 发表于 2011-04-21 16:58
$ cat package.txt
xxxx
123
456
The following packages have unmet dependencies:
pp-anzu-dev-dev: Depends: pvp-anzu-dev-dev-eng but it is not going to be installed
pvp-anzu-dev-dev-eng has broken dependencies to:
mw-default-capabilities-xml-anzu-bc18-ed
fw-amss-fs-anzu
app-pccompanion-iso-ed
The before packages have unment dependencies:
xxxx
xxxx
xxxx
$ cat get_packages.pl- use strict;
- use warnings;
- local $/="\n\n";
- while(<>;){
- if(m/^The following packages/){
- print;
- }
- }
复制代码 $ perl get_packages.pl package.txt
The following packages have unmet dependencies:
pp-anzu-dev-dev: Depends: pvp-anzu-dev-dev-eng but it is not going to be installed
pvp-anzu-dev-dev-eng has broken dependencies to:
mw-default-capabilities-xml-anzu-bc18-ed
fw-amss-fs-anzu
app-pccompanion-iso-ed
$ |
|