File: stripnames.py

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 (10 lines) | stat: -rwxr-xr-x 217 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python2
import sys

if __name__ == "__main__":
    stripped = sys.argv[1]
    index=0
    while (index > -1):
        stripped = stripped[index+1:]
        index = stripped.find('/')
    print stripped