perl -pe 's/([^,]*),/ $1 . " "x(10-length($1))/eg' foo.txt
In reply to Re: convert a comma delimited file to a fixed length
by davidrw
in thread convert a comma delimited file to a fixed length
by tariqahsan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |