Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] OT scripting - strip zero if between period and digit
Date: Mon, 21 Jan 2019 23:50:59
Message-Id: CAC=wYCG-SXRJnFV5FmwfnUJgYdGyYi5_WhRtAuvfvzuST2rFLg@mail.gmail.com
1 I need to clean up a file which has IP addresses with leading zeros in some
2 of the octets so I need to make, say, .09 into .9
3
4 How do i do that in sed/awk/whatever?

Replies