I am trying to echo the $- variable in the context of a logi…

I am trying to echo the $- variable in the context of a login, non-interactive shell. I thought I got it right and issued the following command line: bash –login -c “echo $-” This is what I got in response on the screen: himBH Why is this telling me that the command was executed in an interactive shell?! How do I fix this?

We want to use egrep to match lines of a text file named num…

We want to use egrep to match lines of a text file named numbers.txt that contain at least 1 number between 0 and 255.   Examples of numbers that would be matched: 255, 254, 123, 98, 5, 0.   As an additional constraint, such a number cannot be headed by zeroes.  Examples of numbers that would not be matched: 2134, 256, 092, 05, 005 and 000.  Provide the command line to do so.