I'd like for some help with getting a handle on
port_list.txt exists, and can be fed to Poudriere or Portsnap.
Thing is, I get the following error:
Where in my syntax did I go wrong?
sh
syntax... The goal of my rather simple script is to generate a list of all installed ports whose category is kde or kde-applications... To this end, I have the following in list_kde_ports.sh:
Bash:
for port in `cat port_list.txt`
do
if [ -x pkg query %C $port | grep kde ] ; then echo $port >> kde_ports.txt
done
Thing is, I get the following error:
Bash:
grep: ]: No such file or directory
[: missing ]
Where in my syntax did I go wrong?