#Pipe output from print or printf print | "sort" #Pipe input through getline "ls -l" | getline var #Use the system() function call system( "mkdir /home/fred" )