#!/bin/sh#another pathetic attempt at making a useful script by kingrayray :Pecho "Scanning Portage database for packages..."echo "You have `ls /var/db/pkg/*/* -d | cut -d \/ -f 6 | grep -c "-" ` packages installed."# this is where it should start new lines at every space, within the output file..# or perhaps do it /before/ creating the output file.. unsure.echo `ls /var/db/pkg/*/* -d | cut -d \/ -f 6 | grep "-"` >> pkglist.txt" echo "A list of all these packages has been placed in pkglist.txt" #but it looks awful messy :/