replace cut with shell-builtin