If you want to search a package with a short name, e.g. the line editor named after a great contributor to this forum, you get a lot of results.
Code: Select all
root@porteus:/home/guest# slapt-mod -s ed | wc -l
1111
root@porteus:/home/guest#
Code: Select all
slapt-get --available | grep -i $PKG | awk '{print $1,"",substr($0,index($0,$4))}'
Code: Select all
slapt-get --available | grep -i -E "^$PKG" | awk '{print $1,"",substr($0,index($0,$4))}'
Code: Select all
slapt-get --available | grep -i -E "^$PKG-" | awk '{print $1,"",substr($0,index($0,$4))}'
Could this behaviour be introduced as another mode, e.g. -s for contains, -S for exact match?