I'm having a hard time trying to remove the colons in a list of MAC addresses.
My file:
00:21:5A:28:62:BF
00:24:81:0A:04:44
Expected Output:
00215A2862BF
0024810A0444
Given your tags, you want to accomplish this in a shell:
cat file | sed s/://g
edit: you don't really need the cat
either if you are reading from a file:
sed s/://g file
perl -pe "s/://g" yourfile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With