Guide 1 - Commands

If you know nothing about Perun2 and want to learn something, this is a good place to start. The first major thing are commands.

print 'hello world'

Commands usually consist of a keyword (seen as orange and bold in GUI) and additional values that follow it - arguments. An example is presented above. It prints certain text in log.

print files

Let us modify this command a little bit. Instead of text written between two apostrophes, there is a keyword files. If you run this command, it will print in log all files that are in your working directory.

print files;
print directories

We can call multiple commands sequentially. However, they must be separated by semicolons.

select files

This is the first command that does something real. If you run this one, you will see files selected in the file explorer. Of course it works only if there is something to select.

select 'a.txt';
select 'c:/a/b/c/d.txt';
select '../../a.txt';
select 'a.txt', 'v.txt';
select '*.txt';
select files where not empty;
select directories, 'data.pdf';

Multiple values can be separated by commas and form a collection. The last command from block above selects all directories from your working location and a file data.pdf (if it exists here).

We can select one file, multiple files or a sophisticatedly defined collection of them.

print files;
select files;
delete files;
drop files;
copy files;
copy files to 'f:/';
hide files;
unhide files;
move files to 'f:/';
rename files to substring(fullname, 3);
open files;
open files with notepad;

Examples of Perun2 commands are presented above. If something is ambiguous, enter this documentation page for more information. Following pages of this guide show other possible arguments for them.

Next