yitz_ 1286156959 learn cut allows you to "[p]rint selected parts of lines from each FILE to standard output" based on a single char delimiter greycat 1312915658 forget greycat 1312915675 learn Consider using Parameter Expansions instead of cut(1). http://mywiki.wooledge.org/BashFAQ/100 greycat 1517515735 forget greycat 1517515736 learn Long pipelines involving grep|cut|... can usually be replaced by a single awk command. If you're operating on a string variable, consider using Parameter Expansions instead: http://mywiki.wooledge.org/BashFAQ/100