Join Nostr
2026-08-21 15:57:59 UTC
in reply to

PalePimp on Nostr: open a terminal, go where you have files: for f in *.pdf ; do echo "$f" ; done That ...

open a terminal, go where you have files:

for f in *.pdf ; do echo "$f" ; done

That is a loop and echoes the name of any matching file in the loop.

Your problem is that even such a basic thing is impaired due to your absolute lack of understanding of what makes it possible in the first place.

I will try to give you some insight, but you have to put the effort:

The terminal is a window running a text interface shell that is also an interpreter (it has a small programming language)

This concept alone is something you should study, it means:

It can run programs or let you code some glue to join programs together

The above loop uses the shell's language to create a loop where each file ending in .pdf is sent to the echo command, the echo command outputs its name back to the shell

If rather than using "echo" you do:

for f in *.pdf ; do lpr "$f" ; done

You will be send all PDFs to the printer via the "lpr" command.

Again, you have to put the effort.