I am using FreeBSD 3.2-RELEASE.
For example output from last
-
abelovsk14 1 10-7 22:06
adamov14 5 10-5 22:53
almasi14 1 10-8 22:56
anda13 53 10-6 22:16
andrejko14 51 10-7 01:28
Is possible to replace $4
field to this-
abelovsk14 1 10-07 22:06
adamov14 5 10-05 22:53
almasi14 1 10-08 22:56
anda13 53 10-06 22:16
andrejko14 51 10-07 01:28
$4
field are days. I want to replace day with value for example -1
to value 01
Is possible to do this with sed
or awk
?
1-01
2-02
3-03
..
9-09
10-10
..
- info-abelovsk14(user) 1(numberofnightlogintoserver) 10(month)-7(day) 22:06(lastnightlogin)*