We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c964ef7 commit 1cbd70aCopy full SHA for 1cbd70a
create-techniques.sh
@@ -8,11 +8,12 @@ while [ $# -gt 0 ]
8
do
9
git checkout --orphan tech-$2
10
git rm -rf .
11
+ mkdir techniques
12
mkdir techniques/$1
13
cp ../technique-template.html techniques/$1/$2.html
- sed -i "s/<p id=\"technology\"></p>/<p id=\"technology\">$1<\/p>/" techniques/$1/$2.html
14
- sed -i "s/<p id=\"type\"></p>/<p id=\"type\">$3<\/p>/" techniques/$1/$2.html
15
- sed -i "s/Technique Title/$4/g" techniques/$1/$2.html
+ sed -i "s|<p id=\"technology\"></p>|<p id=\"technology\">$1</p>|" techniques/$1/$2.html
+ sed -i "s|<p id=\"type\"></p>|<p id=\"type\">$3</p>|" techniques/$1/$2.html
16
+ sed -i "s|Technique Title|$4|g" techniques/$1/$2.html
17
git add techniques/$1/$2.html
18
git commit -m "Set up $2 technique"
19
# git push --set-upstream origin tech-$2
0 commit comments