File: getdir.sh

package info (click to toggle)
fvwm-crystal 3.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,748 kB
  • ctags: 793
  • sloc: sh: 2,815; cs: 880; python: 875; makefile: 212
file content (6 lines) | stat: -rwxr-xr-x 133 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
#!/usr/bin/env bash
if [ $2 = '..' ]; then
    `dirname $0`/getprevdir.py "${1}"
else
    echo "`mpc ls "$1"|head -n$2|tail -n1`"
fi