[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: variables



On Mon, Feb 01, 2016 at 11:16:17PM +0100, Hans wrote:
Hi all,

first of all, thanks for the fast response.

If you could suggest a specific tool, we could perhaps tell you the right
thing to use for that tool (or the reasons to use it).


Yes, here is an example:

1. apt-get --purge remove 4.3.1-0-*

will remove all packages with4.3.1-0-* variable/string 4.3.1-0- in its name

2. aptitude purge '~n4.3.1-0-*'
will deinstall all packages, named 4.3.1-0-

3. aptitude purge 'deborphan --guess-all'
will deinstall all packages named by the commnd in the marks

Careful, I think this last command actually uses `backticks`. Backticks are more clearly and more cleanly specified as $(subcommand). With backticks, the command within them is run first and it's output is used at that point in the command line to the outer program. That is:

aptitude purge gnome
aptitude purge `echo gnome`
aptitude purge $(any other command which outputs the word "gnome" on standard output)

are all equivalent (except for the fact that the last two run two processes in quick succession).


I see no system behind it. Looks weired for me.
At the moment I find no example for "foo", but I am sure, one might find it
also.

Hans



--
For more information, please reread.

Attachment: signature.asc
Description: PGP signature


Reply to: