#!/bin/bash
##txt editor
echo "Vitajte..."
echo "1) Zobraz subor __ 2) Novy subor"
read x
case "$x" in
1 ) echo "Zadaj cestu: "
read cesta
cat $cesta
;;
2 ) echo "Zadaj cestu: "
read cesta
echo "Zadaj nazov suboru: "
read subor
echo -n "Zadaj text: "
read text
echo "$text" > $cesta/$subor
;;
* ) echo "nevybral si ziadnu moznost"
;;
esac
nie som nejaky expert cez bash, takze brat s rezervou

chyba tam este cyklus, aby sa program neukoncil hned po prejdeni niektorym z case-ov a podobne osetrenia...pocet riadkov: 24 ^^