Commit 96937775 authored by olaf michaelis's avatar olaf michaelis
Browse files

Add counter

parent 6abbcfb1
......@@ -9,7 +9,7 @@ Content shared by RDMO Users can be found under `shared`. There may be multiple
Different scripts are located in `tools`. These are interesting for people maintaining this repo.
## Shared Catalogs
## Shared catalogs
|Name|File|
|---|---|
......@@ -21,3 +21,5 @@ Different scripts are located in `tools`. These are interesting for people maint
|Horizon 2020 Grants|shared/ub_fau_erlangen_nuernberg/eHum_H2020/eHum_H2020_Fragebogen.xml|
|RDMO Mechanical Engineering V0.1 - 28.03.2019|shared/nfdi4ing/rdmo_mechanical_engineering/catalog_mb_20190124.xml|
|Sociology + DFG|shared/fodako/catalog_ratswd_dfg.xml|
8 catalogs shared
......@@ -14,9 +14,11 @@ function ec(){
echo -e "${1}" >> "${readme_out}"
}
c=0
echo "Generate shared catalog table "
for f in "${arr[@]}"; do
if [[ $(grep -Pc "<catalog\sdc:uri=.*>" "${f}") != 0 ]]; then
c=$((c+1))
title=$(
cat "${f}" \
| tr '\n' ' ' \
......@@ -34,5 +36,6 @@ ec "\n\n## Shared catalogs"
ec "\n|Name|File|"
ec "|---|---|"
cat "${tmpfile}" | sort >> "${readme_out}"
ec "\n${c} catalogs shared"
echo "Done"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment