Search Results

Search: Posts Made By: mshilling
5,798
Posted By alister
If it's always supposed to be seven digits and...
If it's always supposed to be seven digits and you want to pad it with zeroes, the following should work:
Change $3="0"$3 to $3=sprintf("%07d", $3)

Regards,
Alister
1,580
Posted By joeyg
Something like...
I copied the output of your who command to a sample file. So in place of cat sample7.txt you would substitute your who command.

$ cat sample7.txt
tander01 pts/113 Feb 11 09:21 ...
Showing results 1 to 2 of 2

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