use [ -f $filename ] There is a space between "[" and "-f"
On Sun, May 31, 2009 at 8:15 AM, Jeremiah Bess <[email protected]>wrote: > I replied in another post titled "Shell script" > > Jeremiah E. Bess > Network Ninja, Penguin Geek, Father of four > > > On Sat, May 30, 2009 at 16:48, Ryein <[email protected]> wrote: > >> >> ./test.sh: line 6: [-f: command not found >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
