permission list by tabasa

"1000".to_i(8).times{|i|a=("0000"+i.to_s(8))[-4,4];b=a.gsub("0","---");b.gsub!("1","--x");b.gsub!("2","-w-");b.gsub!("3","-wx");b.gsub!("4","r--");b.gsub!("5","r-x");b.gsub!("6","rw-");b.gsub!("7","rwx");puts a+" is "+b[-10,10]}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page