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
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
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
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
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*
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
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/
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
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
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
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
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
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
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
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
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,
$
The behavior is the same when I use '--disable-gpu'.
-Chris
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
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
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
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",
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
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
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
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
25 matches
Mail list logo