mirror of
https://github.com/marado/RNID.git
synced 2025-02-01 15:02:43 +00:00
manter formatação do README
This commit is contained in:
parent
c2e7c2f570
commit
18b3fb0cfb
@ -32,7 +32,7 @@ if [ $((a + b)) -eq "0" ]; then
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v www.parlamento.pt|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
else
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
fail=0;
|
||||
if [ "$(curl https://www.dgae.gov.pt -o /dev/null; echo $?)" -eq "60" ]; then
|
||||
if [ "$(curl -s https://www.dgae.gov.pt -o /dev/null; echo $?)" -eq "60" ]; then
|
||||
echo "economia: problema com o certificado SSL";
|
||||
fail=1;
|
||||
elif [ "$(curl -s -I https://www.dgae.gov.pt/gestao-de-ficheiros-externos-dgae-ano-2015/1_formulario-registo_mf_nao_harmonizadas-doc.aspx|grep filename|cut -d= -f2| tr -d '\r')" == "i010066.doc" ]; then
|
||||
@ -16,7 +16,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v min-economia|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -10,7 +10,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v www.cm-lisboa|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -38,7 +38,7 @@ if [ "$((a + b + c))" -eq "0" ]; then
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v financas|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
else
|
||||
|
@ -10,7 +10,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v autenticacao|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -22,7 +22,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test "$(echo "$line"|grep -c -v sg.mai)" -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -6,7 +6,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v rcaap|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -10,7 +10,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v servicos.min-saude|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -10,7 +10,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v igcp|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -15,7 +15,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v viva|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -19,7 +19,7 @@ if [ "$maybeOK" -eq "0" ]; then
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v eleicoes|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -23,7 +23,7 @@ if [ "$maybeOK" -eq "0" ]; then
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v snirh|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -14,7 +14,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v inpi|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -8,7 +8,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test "$(echo "$line"|grep -v -c "business")" -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -14,7 +14,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test "$(echo "$line"|grep -v -c "norte2020")" -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -10,7 +10,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test "$(echo "$line"|grep -v -c "sef.pt")" -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -10,7 +10,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test "$(echo "$line"|grep -v -c "insa")" -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -14,7 +14,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test $(echo "$line"|grep -v bud|wc -l) -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -10,7 +10,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test "$(echo "$line"|grep -v -c "dgeg")" -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
@ -17,7 +17,7 @@ else
|
||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||
test "$(echo "$line"|grep -v -c "covid19")" -eq "1" \
|
||||
&& echo "$line" \
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
||||
done < README.md > new
|
||||
mv new README.md
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user