On linux,I use ipcalc and its output is separated by "=" like this:

# ipcalc -n


but I find some material the output is separated by ":" like this:

# ipcalc
Address: 00001010.10000100.0011 1010.01111001
Netmast: = 20 11111111.11111111.1111 0000.00000000

so why and how I can make the output separated by ":" ?


I guess it depends on the ipcalc version installed in your OS. Mine (Ubuntu), the output is given with ":".

You can change the characters with sed as follows:

sed -e 's/=/: /g'
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.