Archive for August 2009

GNU sed (Stream EDitor)

sed -r ‘s/\t+/,/g’ sed invoke the stream editor -r use extended regular expressions (similar to using the -E argument for grep). This gives meaning to the ‘+’ character in my regex. s tells sed that we are doing a replacement (“substitution”) operation \t+ find occurrences of one or more tab characters , replace it with [...]