aboutsummaryrefslogtreecommitdiffstats
path: root/193/test.sh
diff options
context:
space:
mode:
Diffstat (limited to '193/test.sh')
-rwxr-xr-x193/test.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/193/test.sh b/193/test.sh
new file mode 100755
index 0000000..b02f5ff
--- /dev/null
+++ b/193/test.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/bash
+
+# while IFS= read -r line; do
+# echo "$line" | grep -Eo "^(\([0-9]{3}\)\s|[0-9]{3}-)[0-9]{3}-[0-9]{4}$"
+# done < ./file.txt
+
+grep -e "^[0-9]\{3\}\-[0-9]\{3\}\-[0-9]\{4\}$" -e "^([0-9]\{3\}) [0-9]\{3\}\-[0-9]\{4\}$" file.txt