Normally when you try to print a line of dashes or any text starting with a dash e.g -3  using the 'print'  command in an Unix korn shell script it will not print anything
$> print  "--------------------------"
$>
To overcome this you can either use the -R option which will make print ignore all following options and escapes.
$> print   -R "--------------------------"
--------------------------
$>
or use the print command with the double dash option print -- this tells the print command where -- stated that no more options follow.
$> print   -- "--------------------------"
--------------------------
$>
Subscribe to:
Post Comments (Atom)
A TRIP TO BHANDUP PUMPING STATION - the birdwatchers paradise
"A Picture from Bhandup Pumping Station" I am a nature lover, and I often like to go birdwatching with my dad. We had read that ...
- 
"A Picture from Bhandup Pumping Station" I am a nature lover, and I often like to go birdwatching with my dad. We had read that ...
- 
Suppose you have some data for sales of some 4 products (A, B, C, D) for the 4 quarters of a year & for 5 regions in the country, an ...
 
 
2 comments:
People should read this.
Glad it was of help. :)
Post a Comment