From: Love U Ruby Date: 2013-02-15T05:17:42+09:00 Subject: Re: Confusion with Ruby command line options From the above link :- http://www.december.com/html/spec/ascii.html I got the octal code of many more escape characters and also played with them with Ruby command line -0 option: Here is the full list of example.. read and digets it. :) @ubuntu:~$ ruby -010 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' This is a spoon. Do you need it.^H This is a spoon. Do you need it. here is: "\b" @ubuntu:~$ ruby -033 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Hi..How are you? Are you going ^[ school today? Hi..How are you? Are you going here is: "\e" @ubuntu:~$ ruby -011 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Today is very hot outside the room Today is very hot outside here is: "\t" @ubuntu:~$ ruby -015 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Are you mad?hey..^Mhello..I am telling you dude... Are you mad?hey.. here is: "\r" @ubuntu:~$ ruby -012 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Are you there? Are you there? here is: "\n" @ubuntu:~$ ruby -040 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Iammmmmmmmmm a Iammmmmmmmmm here is: " " @ubuntu:~$ ruby -014 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Earth is an planet.Remember it...^L dear brother Earth is an planet.Remember it... here is: "\f" @ubuntu:~$ ruby -000 -e 'a= gets; puts a ;puts "here is: #{$/.inspect}"' Hiiiii............ Hiiiii............ here is: "\n\n" @ubuntu:~$ Feel free to ask me any doubt....... love to share my knowledge...... although it is limited :) :) -- Posted via http://www.ruby-forum.com/.