Suppose I have a line under the name very_long_stringwhose contents I want to send to standard output. But since the line is very long, I want to use lessto display text on the terminal. When i use
`less #{very_long_string}`
I get an error File not foundand if I use:
`less <<< #{very_long_string}`
I get an error message unexpected redirection.
So how to use lessRuby from the inside?
Ankit source
share