following code executed in a terminal opens a text editor and displays loop.txt:
if [ -f loopy.txt ]; then
rm loopy.txt
touch loopy.txt
for i in $( seq 1 10)
do
echo $i line added >> loopy.txt
done
xdg-open loopy.txt
if I run it as a script, text editor does not open. Can anyone tell me why not?
Tks, Robert
Aucun commentaire:
Enregistrer un commentaire