Search Results

Search: Posts Made By: msivask
8,284
Posted By
How much would be the maximum characters in first...
How much would be the maximum characters in first field? Assuming 50. And also assuming the number is not more than 999(i.e. maximum 3 digits).

awk -F"=" '{ printf ("%50s = %3d", $1, $2)}'...
8,284
Posted By
awk -F"=" '{ printf ("%-50s = %-3d", $1, $2)}'...
awk -F"=" '{ printf ("%-50s = %-3d", $1, $2)}' inputfile
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy