I would like to know to how to do in Ruby what I can do with system(\"clear\") in C.
I wrote a program like
puts \"amit\"
system(\"clear\")
You can use following create a ruby file say check.rb like follwing
puts "amit"
#system "clear"
and run it from console [Salil@localhost Desktop]$ check.rb
o/p
[Salil@localhost Desktop]$ ruby check.rb
amit
[Salil@localhost Desktop]$
now modify check.rb and run it from console
puts "amit"
system "clear"
o/p
[Salil@localhost Desktop]$