Hello!
How do I remove the last two letters "GB" off each line, using awk?
What I need to remove is the "GB" in following input:
.....
30GB
2504GB
3GB
40GB
......
The OS used is Solaris9
Regards,
Fredrik
Hello!
How do I remove the last two letters "GB" off each line, using awk?
What I need to remove is the "GB" in following input:
.....
30GB
2504GB
3GB
40GB
......
The OS used is Solaris9
Regards,
Fredrik
echo '30GB' | nawk 'sub("..$", "")'