T
Thomas Blabb
Assume I have a text file where each lines contains at first a number and then
some other stuff in the rest of the line. The rest of the line is delimited by a space e.g.
14412 blah blah
23 sometext2
34252346 rest text with multiple words
I want to convert this text file so that the numbers are right justified in a column of width lets say 10:
14412 blah blah
23 sometext2
34252346 rest text with multiple words
The second part of each line should be left-justified (as before)
How can I do this with perl?
How would a perl script looks like ?
Thank you for the answer to a perl newbie
Tom
some other stuff in the rest of the line. The rest of the line is delimited by a space e.g.
14412 blah blah
23 sometext2
34252346 rest text with multiple words
I want to convert this text file so that the numbers are right justified in a column of width lets say 10:
14412 blah blah
23 sometext2
34252346 rest text with multiple words
The second part of each line should be left-justified (as before)
How can I do this with perl?
How would a perl script looks like ?
Thank you for the answer to a perl newbie
Tom