Re: combine two commands via pipe

2024-07-25 Thread coreyh
So, in summary, the glob solution: * Is shorter. * Is easier to read and understand. * Is more efficient. * Doesn't break if someone creates /tmp/apache420. I know few about glob. But after checking the man page I think it is a good idea. Many thanks! -- corey hickman

Re: combine two commands via pipe

2024-07-25 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 09:44:52 +0700, Max Nikulin wrote: > https://mywiki.wooledge.org/BashPitfalls#for_f_in_.24.28ls_.2A.mp3.29 > for f in $(ls *.mp3) > No 1 in Bash Pitfalls I added nicer anchors, which you can use if you prefer: https://mywiki.wooledge.org/BashPitfalls#pf1 The auto-gene

Re: combine two commands via pipe

2024-07-25 Thread Max Nikulin
On 26/07/2024 09:25, Andy Smith wrote: On Fri, Jul 26, 2024 at 10:00:48AM +0800, cor...@free.fr wrote: $ sudo ls -ltr "/tmp/$(ls /tmp |grep apache)" [...] So what is wrong with just using a glob as suggested? Not all people are realizing how many pitfalls they may face using shell. (I admit

Re: combine two commands via pipe

2024-07-25 Thread Andy Smith
Hi, On Fri, Jul 26, 2024 at 10:00:48AM +0800, cor...@free.fr wrote: > I found this works though it's ugly. > > $ sudo ls -ltr "/tmp/$(ls /tmp |grep apache)" > total 4 > > Thanks for all help. If you appreciate help then engage with it. Two people now have suggested that you just use a glob, and

Re: combine two commands via pipe

2024-07-25 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 10:00:48 +0800, cor...@free.fr wrote: > I found this works though it's ugly. > > $ sudo ls -ltr "/tmp/$(ls /tmp |grep apache)" > total 4 Just use a glob. sudo ls -ltr /tmp/*apache*

Re: combine two commands via pipe

2024-07-25 Thread coreyh
I found this works though it's ugly. $ sudo ls -ltr "/tmp/$(ls /tmp |grep apache)" total 4 Thanks for all help. On 2024-07-26 09:42, Max Nikulin wrote: On 26/07/2024 06:59, cor...@free.fr wrote: My actual requirement is that I want to 'ls -ltr' into a subdir in /tmp. that subdir is apache's

Re: combine two commands via pipe

2024-07-25 Thread Max Nikulin
On 26/07/2024 06:59, cor...@free.fr wrote: My actual requirement is that I want to 'ls -ltr' into a subdir in /tmp. that subdir is apache's tmp dir. but the name of the subdir is too long (hard to copy&paste), so I am looking for a easier way. Use glob if it is acceptable sudo ls -ltr /tmp/

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread Steve McIntyre
debian-u...@howorth.org.uk wrote: >Franco Martelli wrote: >> On 25/07/24 at 15:07, Greg Wooledge wrote: >> > Yeah... I have to use a Private window (Firefox) or an Incognito >> > window (Chrome) to duplicate this. If I'm using my regular browser >> > sessions where I'm logged in to the wiki, I do

Re: combine two commands via pipe

2024-07-25 Thread coreyh
There is only one subdir exists with chars ‘apache’ included in /tmp. Regards On 2024-07-26 08:14, Greg Wooledge wrote: On Fri, Jul 26, 2024 at 07:59:42 +0800, cor...@free.fr wrote: > > I won't go any fancier than this until I know it's actually needed. My actual requirement is that I want t

Re: combine two commands via pipe

2024-07-25 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 07:59:42 +0800, cor...@free.fr wrote: > > > > > I won't go any fancier than this until I know it's actually needed. > > My actual requirement is that I want to 'ls -ltr' into a subdir in /tmp. > that subdir is apache's tmp dir. but the name of the subdir is too long > (ha

Re: combine two commands via pipe

2024-07-25 Thread coreyh
I won't go any fancier than this until I know it's actually needed. My actual requirement is that I want to 'ls -ltr' into a subdir in /tmp. that subdir is apache's tmp dir. but the name of the subdir is too long (hard to copy&paste), so I am looking for a easier way. Thank you. -- core

Re: combine two commands via pipe

2024-07-25 Thread mick.crane
On 2024-07-26 00:44, Alain D D Williams wrote: On Fri, Jul 26, 2024 at 07:29:10AM +0800, cor...@free.fr wrote: this could work indeed. but it requires me to input a long path. so I am asking for a easier way. Try this: $ sudo find /tmp -user apache2 I've recently been using catfish to sea

Re: combine two commands via pipe

2024-07-25 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 07:29:10 +0800, cor...@free.fr wrote: > On 2024-07-26 07:14, Alain D D Williams wrote: > > Neither do you say what you are trying to achieve. Looking for files > > owned by > > apache in a directory ? > > yes. Does "owned by apache" mean literally the user "apache"? Or is

Re: combine two commands via pipe

2024-07-25 Thread Alain D D Williams
On Fri, Jul 26, 2024 at 07:29:10AM +0800, cor...@free.fr wrote: > this could work indeed. but it requires me to input a long path. so I am > asking for a easier way. Try this: $ sudo find /tmp -user apache2 -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programme

Re: combine two commands via pipe

2024-07-25 Thread coreyh
On 2024-07-26 07:14, Alain D D Williams wrote: On Fri, Jul 26, 2024 at 07:04:37AM +0800, cor...@free.fr wrote: Hello gurus, I have the following commands: $ ls /tmp/|grep apache2 systemd-private-653536fdd8d04538ab68da7469570d0c-apache2.service-UiHjaL $ sudo ls -ltr /tmp/systemd-private-653536

combine two commands via pipe

2024-07-25 Thread coreyh
Hello gurus, I have the following commands: $ ls /tmp/|grep apache2 systemd-private-653536fdd8d04538ab68da7469570d0c-apache2.service-UiHjaL $ sudo ls -ltr /tmp/systemd-private-653536fdd8d04538ab68da7469570d0c-apache2.service-UiHjaL total 4 When I tried to run them in one line as follows, $

Re: Re: browsers crashing.

2024-07-25 Thread Christopher Judd
The behavior is the same when I use '--disable-gpu'. -Chris

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread debian-user
Franco Martelli wrote: > On 25/07/24 at 15:07, Greg Wooledge wrote: > > Yeah... I have to use a Private window (Firefox) or an Incognito > > window (Chrome) to duplicate this. If I'm using my regular browser > > sessions where I'm logged in to the wiki, I don't get that result. > > > > When i

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread Franco Martelli
On 25/07/24 at 15:07, Greg Wooledge wrote: Yeah... I have to use a Private window (Firefox) or an Incognito window (Chrome) to duplicate this. If I'm using my regular browser sessions where I'm logged in to the wiki, I don't get that result. When in editing mode by clicking "Preview" button i

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread Greg Wooledge
On Thu, Jul 25, 2024 at 20:02:11 +0700, Max Nikulin wrote: > On 25/07/2024 19:11, Greg Wooledge wrote: > > On Thu, Jul 25, 2024 at 18:54:38 +0700, Max Nikulin wrote: > > > https://wiki.debian.org/EnvironmentVariables?action=recall&rev=32 > [...] > > I can't quite guess what "text has no left margin

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread Max Nikulin
On 25/07/2024 19:11, Greg Wooledge wrote: On Thu, Jul 25, 2024 at 18:54:38 +0700, Max Nikulin wrote: https://wiki.debian.org/EnvironmentVariables?action=recall&rev=32 [...] I can't quite guess what "text has no left margin" means here. Firefox-115, see the attachment. Notice that "General",

Re: info is not dead

2024-07-25 Thread Oliver Schode
On Tue, 23 Jul 2024 11:13:47 -0500 Nate Bargmann wrote: > where some nice formatting is done in the GUI Emacs version. The > stand alone GNU info browser is rather obtuse. I found a much better > option to be the independent pinfo (Debian package of the same name) > browser which provides navig

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread Greg Wooledge
On Thu, Jul 25, 2024 at 18:54:38 +0700, Max Nikulin wrote: > A space before " <>" combined with 2 empty lines after > cause extra "" closing before following text. So > most of article text has no left margin. > > https://wiki.debian.org/WikiSandBox?action=recall&rev=144 > https://wiki.debian.org

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread Max Nikulin
On 25/07/2024 10:42, Greg Wooledge wrote: On Thu, Jul 25, 2024 at 09:50:43 +0700, Max Nikulin wrote: https://wiki.debian.org/EnvironmentVariables?action=raw&rev=33 has one empty line after "<>" while rev=22 has 2 empty lines and it may be more significant than a space before "<<". I assume y

Newer mariadb-dump output breaks on import

2024-07-25 Thread Gareth Evans
As explained in: https://mariadb.org/mariadb-dump-file-compatibility-change/ Later versions of MariaDB than Bookworm's 0.5.25, 10.6.18, 10.11.8, 11.0.6, 11.1.5, 11.2.4 and 11.4.2 introduce a breaking change to mariadb-dump (mysqldump) in order to prevent shell commands being executed via SQL d