Python Forum

Full Version: the posix "cut" command
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
the man page in ubuntu 16.04 for the "cut" command does not say that a delimiter must be a single character, but the command will, in an error message, if it gets 2 or more characters. so i would like to rewrite the cut command to accept strings as delimiters. not only that, but i'd like to add a secondary delimiter option -D and support the N.M format for specified fields. cut also has no way to have whitespace of any length as a delimiter so i would like to add that as well. any suggestions on how to specify such a delimiter as primary or secondary?