Re: cut(1) and space delimiters

2010-03-20 Thread Jörg-Volker Peetz
Concerning your task, aptitude comes in handy aptitude -F '%p' search '!~aremove~i' -- Best regards, Jörg-Volker. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ho

Re: cut(1) and space delimiters

2010-03-20 Thread Ron Johnson
On 2010-03-19 22:49, der.hans wrote: Am 19. Mär, 2010 schwätzte Ron Johnson so: Googled and followed examples, which work, but my specific problem doesn't work... WORKS: $ service="http mail ssh" $ echo $service | cut -d\ -f2 mail $ echo $service | cut -d' ' -f2 mail dpkg --get-selections |

Re: cut(1) and space delimiters

2010-03-20 Thread Jörg-Volker Peetz
Although this does not answer your question, here is how to shorten the command pipe by taking advantage of awk capabilities: dpkg --get-selections | awk '!/deinstall$/ {print $1}' -- Best regards, Jörg-Volker. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject o

Re: cut(1) and space delimiters

2010-03-19 Thread Mike McClain
On Fri, Mar 19, 2010 at 09:34:47PM -0500, Ron Johnson wrote: > Googled and followed examples, which work, but my specific problem > doesn't work... > > WORKS: > $ service="http mail ssh" > $ echo $service | cut -d\ -f2 > mail > $ echo $service | cut -d' ' -f2 > mail > dpkg --get-selections | gre

Re: cut(1) and space delimiters

2010-03-19 Thread der.hans
Am 19. Mär, 2010 schwätzte Ron Johnson so: Googled and followed examples, which work, but my specific problem doesn't work... WORKS: $ service="http mail ssh" $ echo $service | cut -d\ -f2 mail $ echo $service | cut -d' ' -f2 mail dpkg --get-selections | grep -v deinstall$ | awk '{print $1}'

Re: cut(1) and space delimiters

2010-03-19 Thread Ron Johnson
On 2010-03-19 21:54, Mike Viau wrote: Fri, 19 Mar 2010 21:34:47 -0500 wrote: Googled and followed examples, which work, but my specific problem doesn't work... WORKS: $ service="http mail ssh" $ echo $service | cut -d\ -f2 mail $ echo $service | cut -d' ' -f2 mail dpkg --get-selections | gre

RE: cut(1) and space delimiters

2010-03-19 Thread Mike Viau
Fri, 19 Mar 2010 21:34:47 -0500 wrote: > Googled and followed examples, which work, but my specific problem > doesn't work... > > WORKS: > $ service="http mail ssh" > $ echo $service | cut -d\ -f2 > mail > $ echo $service | cut -d' ' -f2 > mail > dpkg --get-selections | grep -v deinstall$