general-purpose file parsing

This commit is contained in:
ed 2021-05-16 07:04:18 +02:00
parent c0e6df4b63
commit 0fcfe79994
4 changed files with 52 additions and 16 deletions

9
bin/mtag/file-ext.py Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env python
import sys
"""
example that just prints the file extension
"""
print(sys.argv[1].split(".")[-1])