Allocate an interactive session and run the program. Sample session:
$ module load ripgrep $ echo "my\nmultiline\nfile" > test.txt $ rg line test.txt 1:my\nmultiline\nfile