I have a file which is supposed to contain 200 characters in each line. I received a source file with only 100 characters in each line. I need to add 100 extra white spaces
With awk
awk
awk '{printf "%s%100s\n", $0, ""}' file.dat
$0 refers to the entire line.
$0