How to write a shell script to find the greatest among three numbers ?

#!/bin/bash # # Linux Shell Scripting Tutorial 1.05r3, Summer-2002 # # Written by Vivek G. Gite <vivek@nixcraft.com> # modified by Jeffrin Jose T. <ahiliation@yahoo.co.in> # Latest version can be found at http://www.nixcraft.com/ # # Q2. Script to find out biggest number # # Algo: # 1) START: Take three nos as n1,n2,n3. # 2) Is …

lsattr graph . I

The following graph shows the time details to execute lsattr command which helps in listing file attributes. The following shows a commandline session related to the output of time command along with lsattr.The values for plotting the above graph is taken from the following readings. ————-e– ./README.md ————-e– ./lsattr.txt ————-e– ./barplot real 0m0.002s user 0m0.000s …

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 = …