copying launchers to another account

Chris F.A. Johnson c.f.a.johnson-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Fri Oct 24 05:25:40 UTC 2003


On Wed, 22 Oct 2003 aitken-BwLjziHGQLusTnJN9+BGXg at public.gmane.org wrote:

> "Peter L. Peres" wrote:
>
> > basename `locate gnome|grep png`|sort|uniq
>
> bash-2.05a$ basename `locate gnome|grep png`|sort|uniq
> bash: /bin/basename: Argument list too long

   It wouldn't work if there were only 2 arguments, as basename
   doesn't take multiple arguments as file paths.

   And, anyway, it should have been dirname if you want the
   directories.

   Try this:

locate '*gnome*.png' | sed 'ss/[^/]*$ss' | sort -u

-- 
	Chris F.A. Johnson
	=================================================================
	cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org                      http://cfaj.freeshell.org
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list