Just to get the ball rolling.
#!/bin/sh # Proof of Concept
# ToDo: # Work out best place to add into the aif code # Sanity Checks?
var="coreutils vi vsftpd kernel26 kernel26-firmware gcc gcc-libs file vi pam man-pages jfsutils perl iptables"
remove="vi man-pages jfsutils iptables"
result=$var
for each_name in $remove; do result=$(echo ${result//$each_name/}) done
echo $var
echo $remove
echo $result
On Wed, 1 Apr 2009 23:58:36 +1000 Jud jud@judfilm.net wrote:
Just to get the ball rolling.
#!/bin/sh
use bash. aif depends on bash. besides, your code uses bashims too.
# Proof of Concept
# ToDo: # Work out best place to add into the aif code # Sanity Checks?
var="coreutils vi vsftpd kernel26 kernel26-firmware gcc gcc-libs file vi pam man-pages jfsutils perl iptables"
remove="vi man-pages jfsutils iptables"
result=$var
for each_name in $remove; do result=$(echo ${result//$each_name/}) done
echo $var
echo $remove
echo $result
arch-releng@lists.archlinux.org