Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sort uses -t and -k, cut uses -d and -f. Your point is valid, of course - the options are not consistent across the unix tools.


Thank you, I can't even keep track of the option names for long enough to properly curse them. I wonder if there could be a kind of POSIX schema for similar options across utilities, such as

-o fieldseparator=,

-o fieldkeys=2,1,3

which could be used by any program whose capabilities require such a specifier, could be parsed from config files and environment variables, and aliased for reduced verbosity.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: