Skip to content

Commit 8732fdf

Browse files
committed
Shorten the script to use a single 'uniq' command
1 parent 5dd2956 commit 8732fdf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tldr.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ out=$2
1111
# Step 5: Profit!
1212

1313
# And this is where the magic happens:
14-
cat $in | uniq | grep -Eo '(http|https)://[^/"]+' | uniq > $out
14+
#cat $in | uniq | grep -Eo '(http|https)://[^/"]+' | uniq > $out
15+
cat $in | grep -Eo '(http|https)://[^/"]+' | uniq > $out

0 commit comments

Comments
 (0)