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. 

I certify that I understand that, as a 3 credit offering, th…

I certify that I understand that, as a 3 credit offering, this course will require me to work every single week of the semester for at least 12 hours during spring or fall semesters 20 hours during summer semesters I also certify that I understand that these hours will have to be split into several work sessions, spread over the entire week.

We want to issue a single Bash shell command which will exec…

We want to issue a single Bash shell command which will execute a program named myprog and perform the following redirections; – STDOUT will be redirected to a file named results_only – STDERR will be redirected to a file named errors_only If the file already exists, we simply overwrite it; our shell is not set to prevent this. Select all, if any, of the following shell commands which would fit the bill?