KDE4 64-bit & 32-bit programs & KDE3.5 programs
Andreas Wenning
subscriptions at awen.dk
Fri Feb 13 06:38:15 GMT 2009
Hi Wulfy
I can see in error in both of the commands you pasted now compared to Jonas'
I've tried disabling word-wrap in my email client; and here it is again:
for DIR in $(echo "$PATH" | sed -e "s/:/ /g") ; do find "$DIR" -type f -exec file '{}' \; | grep -i 32-bit | sed "s/:.*$//" ; done
Alternatively I've added it as an attachment. Try to see if that doesn't work for you.
/Andreas
--
,-¤. Kubuntu Linux
¤ ; http://www.kubuntu.org
`-¤' Linux for Human Beings
On Friday 13 February 2009 04:02:24 Wulfy wrote:
> Wulfy wrote:
> > Steven van der Vegt wrote:
> >> On Thursday 12 February 2009 21:57:32 Jonas Norlander wrote:
> >>> 2009/2/12 Wulfy <wulfmann at tiscali.co.uk>:
> >>>> Jonas Norlander wrote:
> >>>>> Are you sure you got the command all in one line? It works for me.
> >>>>> This is the output:
> >>>>> <snip much shorter output than I git>-------------------
> >>>>>
> >>>>> Just make sure the command is on one line and it should work.
> >>>>>
> >>>>> / Jonas
> >>>>
> >>>> It was on one line... I copy/pasted it originally and it was on two
> >>>> lines but I ran the command a second time (with the 32-bit flag) and
> >>>> it was on one line then...
> >>>>
> >>>> --
> >>>> Blessings
> >>>>
> >>>> Wulfmann
> >>>
> >>> That's strange. Why do it work for me and not for you? Can someone
> >>> else try and see if it works for them?
> >>>
> >>> / Jonas
> >>
> >> There is a difference in the first given command and your second one
> >> (the one including the output)
> >>
> >> first:
> >> for DIR in $(echo "$PATH" | sed -e "s/:/ /g") ; do find "$DIR" -type f;
> >> -exec file '{}' \; | grep -i 32-bit | sed "s/:.*$//" ; done
> >> second:
> >> for DIR in $(echo "$PATH" | sed -e 's/:/ /g') ; do find "$DIR/" -type f
> >> -exec file '{}' \; | grep -i '32-bit' | sed -e 's/:.*$//'; done
> >>
> >> single and double quotes, 32-bit between quotes and a slash behind DIR.
> >>
> >> Second works for me, first gives me, like Wulfmann, many application.
> >>
> >> Greetings,
> >>
> >> Steven
> >
> > First version with the ";" removed:
> >
> > wulfy at wulfy-desktop:~$ for DIR in $(echo "$PATH" | sed -e "s/:/ /g") ;
> > do find "$DIR" -type f -exec; > file '{}' \; | grep -i 32-bit | sed
> > "s/:.*$//" ; done
> > find: missing argument to `-exec'
> > bash: {}: command not found
> > find: missing argument to `-exec'
> > bash: {}: command not found
> > find: missing argument to `-exec'
> > bash: {}: command not found
> > find: missing argument to `-exec'
> > bash: {}: command not found
> > find: missing argument to `-exec'
> > bash: {}: command not found
> > find: missing argument to `-exec'
> > bash: {}: command not found
> > find: missing argument to `-exec'
> > bash: {}: command not found
> > wulfy at wulfy-desktop:~$
> >
> >
> > Second version:
> >
> > wulfy at wulfy-desktop:~$ for DIR in $(echo "$PATH" | sed -e 's/:/ /g') ;
> > do find "$DIR/" -type f -exec ; file '{}' \; | grep -i '32-bit' | sed -e
> > 's/:.*$//'; done
> > find: missing argument to `-exec'
> > find: missing argument to `-exec'
> > find: missing argument to `-exec'
> > find: missing argument to `-exec'
> > find: missing argument to `-exec'
> > find: missing argument to `-exec'
> > find: missing argument to `-exec'
> > wulfy at wulfy-desktop:~$
> >
> > erm... still confused... :@)
>
> Note: The commands were on one line in Konsole... it's just the e-mail
> that wrapped them.
>
> --
> Blessings
>
> Wulfmann
>
> Wulf Credo:
> Respect the elders. Teach the young. Co-operate with the pack.
> Play when you can. Hunt when you must. Rest in between.
> Share your affections. Voice your opinion. Leave your Mark.
> Copyright July 17, 1988 by Del Goetz
-------------- next part --------------
for DIR in $(echo "$PATH" | sed -e "s/:/ /g") ; do find "$DIR" -type f -exec file '{}' \; | grep -i 32-bit | sed "s/:.*$//" ; done
More information about the kubuntu-devel
mailing list