Public feed #377685

xevox

public ruby v1 · immutable
Raw Edit
·published 2007-03-01 22:46 UTC
rendered paste body
#!/usr/bin/env ruby=begin Linux, argument selector for the comand ls to list files =endputs "Which argument do you want to use for the command ls ?:"argument = gets#system("ls -l > result.txt")  <------- here the same idea but with -l argument this works great#now i'm trying to use a var to select diferent argument -l, -a and others, but this don'r work for me , don't save nothing in result.txt :'(, sorry my english realy sux x)system("ls #{argument} > result.txt")