-
-
Save sergeykish/176645 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dpkg-query -L bash | ./parg [ -e {} ] | |
/. | |
/bin | |
/bin/bash | |
/etc | |
/etc/skel | |
/etc/skel/.bashrc | |
/etc/skel/.profile | |
/etc/skel/.bash_logout | |
/etc/bash.bashrc | |
/usr | |
/usr/share | |
/usr/share/doc | |
/usr/share/doc/bash | |
/usr/share/doc/bash/CHANGES.gz | |
/usr/share/doc/bash/NEWS.gz | |
/usr/share/doc/bash/INTRO.gz | |
/usr/share/doc/bash/POSIX.gz | |
/usr/share/doc/bash/README.Debian.gz | |
/usr/share/doc/bash/README.commands.gz | |
/usr/share/doc/bash/README.abs-guide | |
/usr/share/doc/bash/inputrc.arrows | |
/usr/share/doc/bash/copyright | |
/usr/share/doc/bash/FAQ | |
/usr/share/doc/bash/changelog.Debian.gz | |
/usr/share/doc/bash/COMPAT.gz | |
/usr/share/man | |
/usr/share/man/man1 | |
/usr/share/man/man1/clear_console.1.gz | |
/usr/share/man/man1/rbash.1.gz | |
/usr/share/man/man1/bash.1.gz | |
/usr/share/man/man1/bashbug.1.gz | |
/usr/share/man/man7 | |
/usr/share/man/man7/bash-builtins.7.gz | |
/usr/share/menu | |
/usr/share/menu/bash | |
/usr/bin | |
/usr/bin/bashbug | |
/usr/bin/clear_console | |
/bin/rbash | |
/bin/sh | |
sed: -e expression #1, char 25: unterminated `s' command | |
размещение файла изменено пакетом dash на /bin/sh.distrib | |
/usr/share/man/man1/sh.1.gz | |
sed: -e expression #1, char 25: unterminated `s' command | |
размещение файла изменено пакетом dash на /usr/share/man/man1/sh.distrib.1.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while read -r value | |
do | |
command=`echo "$@" | sed s:{}:$value:g` | |
eval "$command" && echo "$value" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment