Processes

Perun2 can run its own script files as below:

run '_selext.peru' with perun2

Mentioned command will be translated into command-line "perun2 -s _selext.peru". The possibilities are even wider. We can send arguments to the Perun2 process we run. Let us send one argument: a string txt.

run '_selext.peru' with perun2 with 'txt'

An argument has been sent, but how to read it from another script? That is what the built-in variable arguments is used for. It is a list of all received arguments. Unit arguments are strings, so they may need proper convertion.

select files where extension = arguments[0]