problem with ' set $(cat crpage)'
I have several lines of text that I want to sort by line and display
Code:
|
Positional parameters larger than 9 need to use the full variable form: "${15}".
And from now on, please use [code][/code] tags around your code, to preserve formatting and to improve readability. |
Thankyou
My first post didn't know about [code][code] ,should have RTFM Frank P.S. I have now added code tags |
Not to worry. It's common with newcomers.
Although I would've put the ending tag after the last line of code instead of the end of the post. ;) A couple more things to comment on: You can usually use redirections instead of cat when accessing file contents. In this case you can use: Code:
set $( <crpage ) Code:
(Or mapfile also has an -O option, which lets you set the index start number to whatever you want.) |
All times are GMT -5. The time now is 02:38 PM. |