1) Use the “system” method
system “ls”
2) Or use backticks. Note that backticks support you returning to the results and assigning them to a variable
res = `ls`
res now holds the directory listing returned by ls
Setting the Architectural Standard in the Age of AI
1) Use the “system” method
2) Or use backticks. Note that backticks support you returning to the results and assigning them to a variable
res now holds the directory listing returned by ls