Re: dangling symlinks [ was: Re: "locate" easier to use than "find"]

2023-08-27 Thread tomas
On Sun, Aug 27, 2023 at 02:17:06PM -0400, Jeffrey Walton wrote: [...] > The symlink tool works great, too: > > symlink -r / | grep dangling > > You can also delete them, once you verify they are dangling: > > symlink -r -d / > > In fact, it is a recommended post-upgrade step for Fedor

Re: dangling symlinks [ was: Re: "locate" easier to use than "find"]

2023-08-27 Thread Jeffrey Walton
On Sun, Aug 27, 2023 at 1:10 PM Jörg-Volker Peetz wrote: > > to...@tuxteam.de wrote on 24/08/2023 14:00: > > > > A couple of days ago I was searching for dangling symlinks. > > > >find . -follow -lname "*" > > > How about > find -L . -type l The symlink tool works great, too: symlink

Re: dangling symlinks [ was: Re: "locate" easier to use than "find"]

2023-08-27 Thread tomas
On Sun, Aug 27, 2023 at 07:09:36PM +0200, Jörg-Volker Peetz wrote: > to...@tuxteam.de wrote on 24/08/2023 14:00: > > > > A couple of days ago I was searching for dangling symlinks. > > > >find . -follow -lname "*" > > > How about >find -L . -type l Should work, too. Cheers -- t sign

dangling symlinks [ was: Re: "locate" easier to use than "find"]

2023-08-27 Thread Jörg-Volker Peetz
to...@tuxteam.de wrote on 24/08/2023 14:00: A couple of days ago I was searching for dangling symlinks. find . -follow -lname "*" How about find -L . -type l Regards, Jörg.

Re: "locate" easier to use than "find"

2023-08-24 Thread Greg Wooledge
> > to...@tuxteam.de (12023-08-24): > > > Dunno. I use find nearly every day. Seeing it as "just a recursive > > > grep" doesn't cover a fraction of its usefulness. > > > > > > A couple of days ago I was searching for dangling symlinks. > > > > > > find . -follow -lname "*" Wow... what a cryptic

Re: "locate" easier to use than "find"

2023-08-24 Thread Nicolas George
Stanislav Vlasov (12023-08-24): > Sometimes it's unexpected :-) Then the shell prints an error and I try again. Still less time wasted than these two mails. Regards, -- Nicolas George

Re: "locate" easier to use than "find"

2023-08-24 Thread Stanislav Vlasov
чт, 24 авг. 2023 г. в 18:17, Nicolas George : > > With a really large amount of files there will be overflow of process > > environment (or too large cmdline). > If I expect a very large amount of files, I can use it another way. Sometimes it's unexpected :-) -- Stanislav

Re: "locate" easier to use than "find"

2023-08-24 Thread tomas
On Thu, Aug 24, 2023 at 02:05:48PM +0200, Nicolas George wrote: > to...@tuxteam.de (12023-08-24): > > Dunno. I use find nearly every day. Seeing it as "just a recursive > > grep" doesn't cover a fraction of its usefulness. > > > > A couple of days ago I was searching for dangling symlinks. > > >

Re: "locate" easier to use than "find"

2023-08-24 Thread Nicolas George
Stanislav Vlasov (12023-08-24): > With a really large amount of files there will be overflow of process > environment (or too large cmdline). If I expect a very large amount of files, I can use it another way. -- Nicolas George

Re: "locate" easier to use than "find"

2023-08-24 Thread Stanislav Vlasov
чт, 24 авг. 2023 г. в 17:06, Nicolas George : > > to...@tuxteam.de (12023-08-24): > > Dunno. I use find nearly every day. Seeing it as "just a recursive > > grep" doesn't cover a fraction of its usefulness. > > > > A couple of days ago I was searching for dangling symlinks. > > > > find . -follow

Re: "locate" easier to use than "find"

2023-08-24 Thread Nicolas George
to...@tuxteam.de (12023-08-24): > Dunno. I use find nearly every day. Seeing it as "just a recursive > grep" doesn't cover a fraction of its usefulness. > > A couple of days ago I was searching for dangling symlinks. > > find . -follow -lname "*" ls **/*(N@-@) Zsh rulz. Regards, -- Nicol

Re: "locate" easier to use than "find"

2023-08-24 Thread tomas
On Thu, Aug 24, 2023 at 01:52:28PM +0200, Oliver Schoede wrote: [...] > Have basically stopped using traditional 'find' outside of scripts, as > always thought I was about the last one [...] Dunno. I use find nearly every day. Seeing it as "just a recursive grep" doesn't cover a fraction of its

Re: "locate" easier to use than "find"

2023-08-24 Thread Oliver Schoede
On Mon, 21 Aug 2023 15:56:11 +0200 wrote: >On Mon, Aug 21, 2023 at 03:19:19PM +0200, Roger Price wrote: >> On Mon, 21 Aug 2023, Hans wrote: >> >> > find .mozilla -name favicons.sqlite -ls >> >  1512492   2144 -rw-r--r--   1 myusername myusernama  2195456 Aug >> > 21 13:29 .mozilla/firefox/gs0gkg

Re: "locate" easier to use than "find"

2023-08-21 Thread tomas
On Mon, Aug 21, 2023 at 06:45:16PM +0100, Brian wrote: [...] > plocate-updatedb.service and plocate-updatedb.timer take care of > that for me. :) I admit to accepting some help from trusty cron :) > > Tools, jobs and that :) > > Indeed. Cheers -- t signature.asc Description: PGP signature

Re: "locate" easier to use than "find"

2023-08-21 Thread mick.crane
On 2023-08-21 17:21, to...@tuxteam.de wrote: On Mon, Aug 21, 2023 at 02:50:07PM +, Michael Kjörling wrote: On 21 Aug 2023 15:56 +0200, from to...@tuxteam.de: >> For me command "locate" is easier to use than "find": > > They do different things. Locate is much faster, but it only looks > into

Re: "locate" easier to use than "find"

2023-08-21 Thread tomas
On Mon, Aug 21, 2023 at 02:50:07PM +, Michael Kjörling wrote: > On 21 Aug 2023 15:56 +0200, from to...@tuxteam.de: > >> For me command "locate" is easier to use than "find": > > > > They do different things. Locate is much faster, but it only looks > > into file names. Find can do nearly every

Re: "locate" easier to use than "find"

2023-08-21 Thread Michael Kjörling
On 21 Aug 2023 15:56 +0200, from to...@tuxteam.de: >> For me command "locate" is easier to use than "find": > > They do different things. Locate is much faster, but it only looks > into file names. Find can do nearly everything, like looking into > file metadata ("show me all files younger than 12

Re: "locate" easier to use than "find"

2023-08-21 Thread tomas
On Mon, Aug 21, 2023 at 03:19:19PM +0200, Roger Price wrote: > On Mon, 21 Aug 2023, Hans wrote: > > > find .mozilla -name favicons.sqlite -ls > >  1512492   2144 -rw-r--r--   1 myusername myusernama  2195456 Aug 21 13:29 > > .mozilla/firefox/gs0gkgv2.default/favicons.sqlite > >  1515049    260 -r

"locate" easier to use than "find"

2023-08-21 Thread Roger Price
On Mon, 21 Aug 2023, Hans wrote: find .mozilla -name favicons.sqlite -ls  1512492   2144 -rw-r--r--   1 myusername myusernama  2195456 Aug 21 13:29 .mozilla/firefox/gs0gkgv2.default/favicons.sqlite  1515049    260 -rw-r--r--   1 myusername myusername   262144 Aug 18 22:36 .mozilla/firefox/th3d