Search Results

Search: Posts Made By: hazy
25,941
Posted By hazy
i was missing then after the elif statement. ...
i was missing then after the elif statement.

thanks for that. i read over it so many times and didnt see it
25,941
Posted By hazy
syntax error at line 33: `elif` unexpected
#!/bin/sh

echo "Choose option: e, d, l, t, p, or x."
read option

if test $option = e

then

echo "Filename?"
read file

if test ! -f $file
then
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy