Open main menu

CDOT Wiki β

Changes

Talk:Fall 2008 SPR720 Sample Exam Questions

93 bytes added, 01:21, 11 December 2008
no edit summary
15. Write the correct bash syntax to run the command "bar", taking the input from the file "up", and sending the output and error messages to the command "baz".
===16. Write a bash script to display all of the odd numbers from 1 to 99 with one space between each number.===ANSWER: #!/bin/bash for ((A=1; A<=99; A+=2)) do echo -n $A" " done ''PopCon''
===17. Describe what the PATH environment variable does. Write the syntax to add the directory "/usr/local/bin" to the PATH as the first directory searched.===