We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f4542 commit f2e1f15Copy full SHA for f2e1f15
1 file changed
gen.sh
@@ -1,10 +1,11 @@
1
#!/usr/bin/env bash
2
3
dist=dist/colorEcho.sh
4
+table=table.txt
5
6
echo '#!/usr/bin/env bash' > $dist
7
-for color in `cat table.txt | awk '{print $1}'`
8
+for color in `cat $table | awk '{print $1}'`
9
do
10
for light in "" "Light"
11
@@ -30,7 +31,7 @@ do
30
31
ulCode='4;'
32
fi
33
echo "{" >> $dist
- echo ' echo -e "\e['"$ulCode$bCode$code"$(grep $color table.txt | awk '{print $2}')'m$@\e[m"' >> $dist
34
+ echo ' echo -e "\e['"$ulCode$bCode$code"$(grep $color $table | awk '{print $2}')'m$@\e[m"' >> $dist
35
echo "}" >> $dist
36
done
37
0 commit comments