Is there a way to check to see if the user entered variable is a valid integer?
I have:
...
read var
if test $var -lt 5
then
echo "integer"
fi
This works just fine if var is an integer, but if it is not, then I get a "bad integer" error. I would like it to not give an...
Hi,
Is there a way to use nawk or grep to search a column in a data file when the column number and search string are input by the user? In other words, in this example I am searching the second column for the word Orient:
nawk '$2 ~ /Orient/ {print $0}' acmebooks
But what I'd like to do is...
Hi,
Does anyone know of a program that you can use to launch your java classes without the launch of a DOS shell. I would like to double-click on a file and have it launch my java class.
Thanks,
Ree
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.