From b0d4f79820eecafadaffc443df57eb0d18872b9e Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Wed, 14 Sep 2022 23:30:46 +0200 Subject: Added all patterns to the code and made that you could select between them with j and k and animate them with a and stop the animation with s --- presets/scripts/filter.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 presets/scripts/filter.sh (limited to 'presets/scripts/filter.sh') diff --git a/presets/scripts/filter.sh b/presets/scripts/filter.sh new file mode 100755 index 0000000..fdb0f50 --- /dev/null +++ b/presets/scripts/filter.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +for file in $(ls ./patterns/) +do + lines=$(cat "./patterns/$file" | wc -l) + if [[ $lines > 42 ]]; + then + rm "./patterns/$file" + fi +done -- cgit v1.2.3