I have a requirement where in i have to create a temporary file by prefixing a string of special characters to each row of a input file.
the input file is '|' delimited.
here is the content of input file
aaa|1234|axad|123
bbb|qwqw|qw|1334
the output should be
###|aaa|1234|axad|123
###|bbb|qwqw|qw|1334
i know how to do this using sed..but i just want to evaluate the options using awk. also i would like to know which one will be more performance effective if i have to process files containing 2-3 million records.