diff --git a/bash/193.sh b/bash/193.sh new file mode 100644 index 0000000..a39579c --- /dev/null +++ b/bash/193.sh @@ -0,0 +1,2 @@ +# Read from the file file.txt and output all valid phone numbers to stdout. +grep -P "^\(\d{3}\) \d{3}-\d{4}$|^\d{3}-\d{3}-\d{4}$" file.txt diff --git a/bash/195.sh b/bash/195.sh new file mode 100644 index 0000000..b224532 --- /dev/null +++ b/bash/195.sh @@ -0,0 +1,2 @@ +# Read from the file file.txt and output the tenth line to stdout. +head -n 10 file.txt | tail -n +10