diff --git a/gui.html b/gui.html new file mode 100644 index 0000000..266a871 --- /dev/null +++ b/gui.html @@ -0,0 +1,423 @@ + + + + + + Markdown/JSON Toolkit + + + +
+

Markdown/JSON Toolkit

+ +
+ +
+
+

Markdown to JSON

+

Paste your GitHub flavored Markdown table here:

+ + + +
+ +
+

Update JSON

+

Paste your existing JSON data here:

+ + +
+ + +
+ +
+ + +
+ + + +
+ +
+

JSON to Markdown

+

Paste your JSON data here:

+ + + +
+
+ + + + \ No newline at end of file diff --git a/sort-table.sh b/sort-table.sh new file mode 100755 index 0000000..420c1e7 --- /dev/null +++ b/sort-table.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# filepath: /home/ali/Github/debrid-services-comparison/sort_table.sh + +# Extract the header and the table content +header=$(head -n 1 /home/ali/Github/debrid-services-comparison/README.md) +table=$(tail -n +2 /home/ali/Github/debrid-services-comparison/README.md) + +# Sort the table content by the first column +sorted_table=$(echo "$table" | sort -t '|' -k 2) + +# Combine the header and the sorted table +echo "$header" > /home/ali/Github/debrid-services-comparison/README_sorted.md +echo "$sorted_table" >> /home/ali/Github/debrid-services-comparison/README_sorted.md + +echo "Table sorted and saved to README_sorted.md" \ No newline at end of file