Skip to content
Snippets Groups Projects
Commit 636bb962 authored by Lukáš Krupčík's avatar Lukáš Krupčík
Browse files

repair bugs

parent 4574cc7f
No related branches found
No related tags found
4 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section
......@@ -10,34 +10,6 @@
if [ "$1" = "-t" ]; then
# testing new function
echo "Testing..."
#grep ./docs.it4i.cz/salomon/software/ansys/Fluent_Licence_2.jpg ./converted/ -R
(while read i;
do
if [ -f "$i" ];
then
#echo "$i";
test=$(grep "$i" ./converted/ -R)
if [ ! "$test" ]
then
continue
else
echo "$test" >> test.txt
fi
fi
done) < ./info/list_image.txt
fi
if [ "$1" = "-t1" ]; then
# testing new function
echo "Testing 1..."
rm -rf ./converted
......@@ -69,8 +41,8 @@ if [ "$1" = "-t1" ]; then
sed -e 's/``` /```/' "./converted/$a" | sed -e 's/ //' | sed -e 's/<span class="pln">//' | sed -e 's/<span//' | sed -e 's/class="pln">//' | sed -e 's/<\/span>//' | sed -e 's/^\*\*//' | sed -e 's/\^\[>\[1<span>\]<\/span>\]//' > "./converted/${a%.*}TMP.md";
while read x ; do
arg1=`echo "$x" | cut -d"&" -f1 | sed 's:[]\[\^\$\.\*\/\"]:\\\\&:g'`;
arg2=`echo $x | cut -d"&" -f2 | sed 's:[]\[\^\$\.\*\/\"]:\\\\&:g'`;
arg1=$(`echo "$x" | cut -d"&" -f1 | sed 's:[]\[\^\$\.\*\/\"]:\\\\&:g'`);
arg2=$(`echo $x | cut -d"&" -f2 | sed 's:[]\[\^\$\.\*\/\"]:\\\\&:g'`);
#echo "$arg1";
#echo ">$arg2";
......@@ -87,36 +59,6 @@ if [ "$1" = "-t1" ]; then
fi
fi
if [ "$1" = "-t2" ]; then
# testing new function
# sed -e 's/[![PuTTY - Create/![](putty-tunnel.png)/'
#^[>[1<span>]</span>]
# sed -e 's/'"$arg1"'/'"$arg2"'/g'
echo "Testing 2 ..."
sed -e 's/``` /```/' /home/kru0052/Desktop/docs.it4i_new/converted/docs.it4i.cz/get-started-with-it4innovations/accessing-the-clusters/graphical-user-interface/vnc.md | sed -e 's/ //' | sed -e 's/^ **//'| sed -e 's/^R/R /' | sed -e 's/^=/===/' | sed -e 's/<span class="pln">//' | sed -e 's/<span//' | sed -e 's/class="pln">//' | sed -e 's/<\/span>//' | sed -e 's/### \[\]()\[\]()/###/' | sed -e 's/^\*\*//' | sed -e 's/\^\[>\[1<span>\]<\/span>\]//' > /home/kru0052/Desktop/docs.it4i_new/converted/docs.it4i.cz/get-started-with-it4innovations/accessing-the-clusters/graphical-user-interface/vnc2.md
while read a ; do
arg1=`echo "$a" | cut -d"&" -f1 | sed 's:[]\[\^\$\.\*\/\"]:\\\\&:g'`;
arg2=`echo $a | cut -d"&" -f2 | sed 's:[]\[\^\$\.\*\/\"]:\\\\&:g'`;
echo "$arg1";
echo "$arg2";
sed -e 's/'"$arg1"'/'"$arg2"'/' /home/kru0052/Desktop/docs.it4i_new/converted/docs.it4i.cz/get-started-with-it4innovations/accessing-the-clusters/graphical-user-interface/vnc2.md > /home/kru0052/Desktop/docs.it4i_new/converted/docs.it4i.cz/get-started-with-it4innovations/accessing-the-clusters/graphical-user-interface/vnc3.md;
cat /home/kru0052/Desktop/docs.it4i_new/converted/docs.it4i.cz/get-started-with-it4innovations/accessing-the-clusters/graphical-user-interface/vnc3.md > /home/kru0052/Desktop/docs.it4i_new/converted/docs.it4i.cz/get-started-with-it4innovations/accessing-the-clusters/graphical-user-interface/vnc2.md;
done < ./source/replace_in.txt
fi
if [ "$1" = "-w" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment