You are not logged in.
Pages: 1
When I run this, filename.txt in Geany is empty.
It runs ok up to geany filename.txt.
What am I doing wrong?
basename %f > filename.txt | geany filename.txt | rm filename.txt
Thanks.
Last edited by KBar (2022-08-16 05:27:49)
Ubuntu-Mate 24.04
Offline
Without knowing exactly what you're trying to accomplish, I would guess that filename.txt is being deleted before geany has a chance to open it. Try this command instead:
basename %f > filename.txt && geany filename.txt && rm filename.txt
...the "&&" will wait until the previous command completes before it executes the next one.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks. That worked great.
Ubuntu-Mate 24.04
Offline
Pages: 1
[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 529.17 KiB (Peak: 538.02 KiB) ]