Thanks for the help. I tried lots of the variants suggested but the one that worked is ; %sysexec (ls -l "&file_path" | grep ^d > /tmp/folderlisting.csv); also had to do some double quoting of the variable file_path when setting it but that is all part of the differences in EG and DIS.
... View more