View Single Post
Old 12-18-2012, 12:45 AM   PM User | #2
FishMonger
Super Moderator


 
Join Date: May 2005
Location: Southern tip of Silicon Valley
Posts: 2,753
Thanks: 2
Thanked 149 Times in 144 Posts
FishMonger will become famous soon enoughFishMonger will become famous soon enough
Quote:
$original_line prints 1st 3 columns as 1 string.
That's the first obvious mistake, but if you specify the correct format length, which is the combined total of those 3 fields, it should be ok. It appears that the correct length would be between 60 and 68 depending on the desired spacing prior to the next field. You've specified a field length of 8, which is clearly not even close to what it should be.

After a couple tests, this might be closer to what you need.
Code:
printf MYFILE ("%-60s %13.0f %30s\n", $original_line, $result, $user_folders);
FishMonger is offline   Reply With Quote