BUBBLE SORT USING RUBY ARRAY SIZE 100

#!/usr/bin/ruby =begin bubble sort in php by detour@metalshell.com Generate random numbers then sort them. Ported to Ruby by Jeffrin Jose T Licensed : GPL =end array_size = 100 x = 0 y = 0 z = 0 hold = 0 ran = Array.new(array_size) while x < array_size ran[x] = rand(1..1000) x +=1 end x = …

What is the difference between ls -a and ls -A ?

commandline session $who jeffrin tty7 2014-03-30 00:04 (:0) jeffrin pts/0 2014-03-30 00:06 (:0) $’who’ jeffrin tty7 2014-03-30 00:04 (:0) jeffrin pts/0 2014-03-30 00:06 (:0) $`who` bash: jeffrin: command not found $ls -a > a.txt $ls -A > A.txt $diff a.txt A.txt 1,2d0 < . A.txt $cmp a.txt A.txt a.txt A.txt differ: byte 1, line 1 …