Kubuntu Alpha's

Derek Broughton derek at pointerstop.ca
Tue Sep 22 18:16:56 UTC 2009


Knapp wrote:

>> sudo dpkg --get-selections | cut -f1 -d '       ' > fresh-install-list
>>
>> This creates the list of installed packages in the folder you are
>> right now.. This one is a bit tricky since the long space between the
>> ' is a tab.

Doesn't bash just let you use escapes?  i.e.:
 sudo dpkg --get-selections | cut -f1 -d '\t' > fresh-install-list

Still, I keep evangelizing for the cleaner way:

# aptitude search '~i !~M' | tr -s ' ' | cut -f 2 -d ' '  \ 
   >installed.txt
-- 
derek





More information about the kubuntu-users mailing list