[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Help with first bash script please
- From: "Graham Cossey" <graham cossey plus com>
- To: "FEDORA LIST" <fedora-list redhat com>
- Subject: Help with first bash script please
- Date: Thu, 21 Oct 2004 16:06:00 +0100
I'm going nowhere at the moment with this VERY simple bash script, can
someone help please?
All I need to do is check the value of one of the command line parameters
and conditionally perform a task
1 #!/bin/bash
2 printf "Type = $6"
3 if [$6 == 'F']
4 then
5 Do the task
6 fi
7 Do other tasks
I keep getting:
Type = Q
line 3: [Q: Command not found
Also, does someone have a 'simple' bash scripting resource they could point
me to? I can find plenty of advanced scripting pages but founf nothing with
the above example that worked.
TIA
Graham
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]