fork(6) download
  1. #!/bin/bash
  2. echo "2001:0Db8:85a3:0000:8a2e:0370:7334" | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$"
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
2001:0Db8:85a3:0000:8a2e:0370:7334