All pastes #73761 Raw Edit

kingrayray

public shellscript v1 · immutable
#73761 ·published 2006-06-28 07:11 UTC
rendered paste body
#!/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 :/