Skip to content

Commit 3ea2379

Browse files
committed
Add append script
1 parent 4cb236e commit 3ea2379

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/append

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
APPEND="$1"
4+
TARGET="$2"
5+
6+
pcregrep -qM "$APPEND" "$TARGET" || echo "$APPEND" >> "$TARGET"

0 commit comments

Comments
 (0)