Posts

Showing posts from January 4, 2019

Remove last character from line

Image
Clash Royale CLAN TAG #URR8PPP 41 12 I want to remove last character from a line: [root@ozzesh ~]#df -h | awk ' print $5 ' Use% 22% 1% 1% 59% 51% 63% 5% Expected result: Use 22 1 1 59 51 63 5 text-processing share | improve this question edited Sep 18 '13 at 12:20 Braiam 23.1k 19 76 137 asked Jul 15 '13 at 5:46 Özzesh 1,183 6 16 25 2 Is it always a % sign? – Bernhard Jul 15 '13 at 5:55 add a comment  |  41 12 I want to remove last character from a line: [root@ozzesh ~]#df -h | awk ' print $5 ' Use% 22% 1% 1% 59% 51% 63% 5% Expected result: Use 22 1 1 59 51 63 5 text-processing share | improve this question edited Sep 18 '13 at 12:20 Braiam 23.1k 19 76 137 asked Jul 15 '13 at 5:46 Özzesh 1,183 6 16 25 2 Is it always a % sign? – Bernhard Jul 15 '13 at 5:55 add a comment  |  41 12