Sort with uniq OpenEmbedded package names
For each line take 4th dirname of path. For example: "alsa-utils", "gawk-3.1.5", ... But! But if previous result is "files", take 3rd dirname instead. For example: "mktemp", "mklibs" ... If version is present in package name (dash is the separator character), take it. For example: "apt-0.9.9.4" prevails over "apt". And finally, use sort -u to get unique names!
Start file
meta/recipes-devtools/qemu/qemu/fix-libcap-header-issue-on-some-distro.patch
meta/recipes-devtools/qemu/qemu/larger_default_ram_size.patch
meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
meta/recipes-devtools/apt/apt-0.9.9.4/no-ko-translation.patch
meta/recipes-extended/cracklib/cracklib/0001-packlib.c-support-dictionary-byte-order-dependent.patch
meta/recipes-extended/screen/screen/rpathfix.patch
meta/recipes-extended/lighttpd/lighttpd/acdefine.patch
meta/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch
meta/recipes-multimedia/tremor/tremor-20120314/obsolete_automake_macros.patch
meta/recipes-devtools/flex/files/do_not_create_pdf_doc.patch
meta/recipes-extended/gawk/gawk-3.1.5/obsolete_automake_macros.patch
meta/recipes-extended/mktemp/files/fix-parallel-make.patch
meta/recipes-extended/screen/screen-4.0.3/configure.patch
meta/recipes-extended/gawk/gawk-4.1.1/Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch
meta/recipes-devtools/qemu/qemu/configure-Fix-Darwin-target-detection.patch
meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch
meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch
meta/recipes-devtools/qemu/files/qemu-enlarge-env-entry-size.patch
meta/recipes-graphics/drm/libdrm/installtests-and-use-vimgolf.patch
meta/recipes-extended/lighttpd/lighttpd/pkgconfig.patch
meta/recipes-devtools/m4/m4/program_prefix.patch
meta/recipes-devtools/qemu/files/exclude-some-arm-EABI-obsolete-syscalls.patch
meta/recipes-devtools/m4/m4/ac_config_links.patch
meta/recipes-devtools/mklibs/files/add-missing-data-files.patch
meta/recipes-extended/mktemp/files/disable-strip.patch
meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch
meta/recipes-devtools/m4/m4/remove-gets.patch
meta/recipes-devtools/apt/files/db_linking_fix.patch
meta/recipes-devtools/qemu/qemu/disable-grabs.patch
meta/recipes-devtools/qemu/files/Qemu-Arm-versatilepb-Add-memory-size-checking.patch
meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch
meta/recipes-multimedia/alsa/alsa-utils/alsa-utils-aplay-interrupt-signal-handling-fix.patch
meta/recipes-devtools/apt/files/no-curl-hack.patch
meta/recipes-extended/screen/screen-4.0.3/fix-parallel-make.patch
meta/recipes-devtools/qemu/qemu/wacom.patch
meta/recipes-multimedia/tremor/tremor-20120314/tremor-arm-thumb2.patch
meta/recipes-devtools/xmlto/xmlto-0.0.26/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
meta/recipes-devtools/apt/apt-0.9.9.4/rpathfix.patch
meta/recipes-devtools/apt/apt-0.9.9.4/nodoc.patch
End file
alsa-utils
apt-0.9.9.4
cracklib
flex
gawk-3.1.5
gawk-4.1.1
libdrm
lighttpd
m4
mklibs
mktemp
qemu
screen-4.0.3
tremor-20120314
xmlto-0.0.26
View Diff
1,39c1,15
< meta/recipes-devtools/qemu/qemu/fix-libcap-header-issue-on-some-distro.patch
< meta/recipes-devtools/qemu/qemu/larger_default_ram_size.patch
< meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
< meta/recipes-devtools/apt/apt-0.9.9.4/no-ko-translation.patch
< meta/recipes-extended/cracklib/cracklib/0001-packlib.c-support-dictionary-byte-order-dependent.patch
< meta/recipes-extended/screen/screen/rpathfix.patch
< meta/recipes-extended/lighttpd/lighttpd/acdefine.patch
< meta/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch
< meta/recipes-multimedia/tremor/tremor-20120314/obsolete_automake_macros.patch
< meta/recipes-devtools/flex/files/do_not_create_pdf_doc.patch
< meta/recipes-extended/gawk/gawk-3.1.5/obsolete_automake_macros.patch
< meta/recipes-extended/mktemp/files/fix-parallel-make.patch
< meta/recipes-extended/screen/screen-4.0.3/configure.patch
< meta/recipes-extended/gawk/gawk-4.1.1/Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch
< meta/recipes-devtools/qemu/qemu/configure-Fix-Darwin-target-detection.patch
< meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch
< meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch
< meta/recipes-devtools/qemu/files/qemu-enlarge-env-entry-size.patch
< meta/recipes-graphics/drm/libdrm/installtests-and-use-vimgolf.patch
< meta/recipes-extended/lighttpd/lighttpd/pkgconfig.patch
< meta/recipes-devtools/m4/m4/program_prefix.patch
< meta/recipes-devtools/qemu/files/exclude-some-arm-EABI-obsolete-syscalls.patch
< meta/recipes-devtools/m4/m4/ac_config_links.patch
< meta/recipes-devtools/mklibs/files/add-missing-data-files.patch
< meta/recipes-extended/mktemp/files/disable-strip.patch
< meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch
< meta/recipes-devtools/m4/m4/remove-gets.patch
< meta/recipes-devtools/apt/files/db_linking_fix.patch
< meta/recipes-devtools/qemu/qemu/disable-grabs.patch
< meta/recipes-devtools/qemu/files/Qemu-Arm-versatilepb-Add-memory-size-checking.patch
< meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch
< meta/recipes-multimedia/alsa/alsa-utils/alsa-utils-aplay-interrupt-signal-handling-fix.patch
< meta/recipes-devtools/apt/files/no-curl-hack.patch
< meta/recipes-extended/screen/screen-4.0.3/fix-parallel-make.patch
< meta/recipes-devtools/qemu/qemu/wacom.patch
< meta/recipes-multimedia/tremor/tremor-20120314/tremor-arm-thumb2.patch
< meta/recipes-devtools/xmlto/xmlto-0.0.26/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
< meta/recipes-devtools/apt/apt-0.9.9.4/rpathfix.patch
< meta/recipes-devtools/apt/apt-0.9.9.4/nodoc.patch
---
> alsa-utils
> apt-0.9.9.4
> cracklib
> flex
> gawk-3.1.5
> gawk-4.1.1
> libdrm
> lighttpd
> m4
> mklibs
> mktemp
> qemu
> screen-4.0.3
> tremor-20120314
> xmlto-0.0.26
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
#15 Oliver Christ / @0liverChrist - Score: 85 - 02/08/15 @ 19:01
:v/files/d<CR>Vgg"ayu:<Up><Home><Del>g<CR>gg"aPqqd2f/+q9@qqqd3f/+q27@q@qggqqf/D+q38@q:sor u<CR>jdd14GkddZZ
0 comments