🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #262

Re: Bash: check if a value is into an array

#262
From: Franco Martelli
Date: Thu, 22 Oct 2026 17:40
19 lines
4679 bytes
On 22/10/26 at 18:54, Charles Curley wrote:
> Another way to get your playlist played randomly and non-repeatably is
> to use vlc and have it play randomly within the playlist. I suspect
> other players can do similarly.

I've already tried vlc, maybe for songs it's fine but for video clips 
it's a pain, it continuously adapt the window at the file resolution 
enlarging and shrinking file after file played.

I did many attempts to set a fixed resolution but all failed, so I 
decided to write a shell script and to use "ffplay".
"ffplay" works fine, the window appear centered on the screen and right 
clicking with the mouse on the left or on the right side of the window 
it moves the timeline (seek) respectively at the begin or at the end of 
the video.

Kind regards,
-- 
Franco Martelli
Technical Details
Message-ID: <NR4VH-7e8T-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NQFND-6ZMU-9@gated-at.bofh.it> <NQG6Z-703J-7@gated-at.bofh.it> <NQJod-71PP-13@gated-at.bofh.it> <NQJxT-71Ty-3@gated-at.bofh.it> <NQJRf-729Y-7@gated-at.bofh.it> <NR33A-7cWF-3@gated-at.bofh.it> <NR3df-7d0H-1@gated-at.bofh.it> <NR4j0-7dIu-13@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Franco Martelli <martellif67@gmail.com>
Newsgroups: linux.debian.user
Subject: Re: Bash: check if a value is into an array
Date: Thu, 22 Oct 2026 19:40:01 +0200
Message-ID: <NR4VH-7e8T-3@gated-at.bofh.it>
References: <NQFND-6ZMU-9@gated-at.bofh.it> <NQG6Z-703J-7@gated-at.bofh.it> <NQJod-71PP-13@gated-at.bofh.it> <NQJxT-71Ty-3@gated-at.bofh.it> <NQJRf-729Y-7@gated-at.bofh.it> <NR33A-7cWF-3@gated-at.bofh.it> <NR3df-7d0H-1@gated-at.bofh.it> <NR4j0-7dIu-13@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Thu Oct 22 17:38:31 2026
Old-Return-Path: <martellif67@gmail.com>
X-Amavis-Spam-Status: No, score=-1.849 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -5.5
X-Gm-Message-State: AFq9FYJcvMOqpIG1XdC98z4YjfBnC+BiELmigfKemnBpOzPgQxKSjTit
	oRIVrk439DnTa3TeOkdu47mrDwro4O7FIIIgOb14Sy7S8PgpEUShMfPvW/pnPA==
X-Gm-Gg: AYBFou2ProvKybwYckiMJliRnefICaUCay2a0X9HaiB2zdbkLIvlbAuhyjAgA7MoYu6
	zYdL3Xot1bmG/jLJMVRcpn/d3PmjxWEJGxWsi6blLfzXibTcUGP4wLu9oQhr+6pkuOartvxscMQ
	nlS92YvdDUVZvdLEmFfyAoe5hfRA7H/5wXXswcGSsI86O3KKu/r3Fon982SSdtacIa/ooTsrRii
	m20oifeU5WZPxnH7NblJqPY6VsLaZVLHIzwfnnb0XK+5cMbvypR+q37gU+3OYGqQufVL25yNETK
	fGbyntvfnaKPBCGkVoAIsI0Xy4NOEC6Jwzt93hqcvd+79A29b0wZYp90JLbw2Fh5xP4kFXztNGz
	N8oRx8Ej/5QqkpOiBIqDlpJBZ3YyyFkNI/T5Yvi4C6NFeZ4dWmZxl/uuT0XxkoTmEW6iHYNN2C4
	dPx7nP4jCp7SS5S0JfnRdcYFzpcLcTGcVSnRcrHpUA9Y6xZ7rWE47a+gwcYirqfDa0DsRMZuxEA
	/cK7zwTY5bixSIYR5RLgTHiVCYUwMvlAtsyGfD/BhEcb15A7yblT34mpxyLAUM4dAd1cV9hq6rO
	Rr+pPdC9NcGD
X-Received: by 2002:a05:600c:1f95:b0:4a1:e722:a0a7 with SMTP id 5b1f17b1804b1-4a1fdd19dddmr129496835e9.30.1792690697142;
        Thu, 22 Oct 2026 10:38:17 -0700 (PDT)
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=martellif67@gmail.com; keydata=
 xjMEXwx9ehYJKwYBBAHaRw8BAQdA8CkGKYFI/MK9U3RPhzE5H/ul7B6bHu/4BIhTf6LLO47N
 J0ZyYW5jbyBNYXJ0ZWxsaSA8bWFydGVsbGlmNjdAZ21haWwuY29tPsKWBBMWCAA+FiEET9sW
 9yyU4uM6QbloXEn0O0LcklAFAmhyroACGwMFCQ0ncuYFCwkIBwIGFQoJCAsCBBYCAwECHgEC
 F4AACgkQXEn0O0LcklAHVwD9H5JZ52g292FD8w0x6meDD8y/6KkNpzuaLHP6/Oo8kAIBAJsh
 aMB9LdCBJTMtnxU8JTHtAoGOZ/59UJWeZIkuWJUNzjgEXwx9ehIKKwYBBAGXVQEFAQEHQNP5
 V2q0H0oiJu89h1SSPgQDtkixXvUvRf1rNLLIcNpPAwEIB8J+BBgWCAAmFiEET9sW9yyU4uM6
 QbloXEn0O0LcklAFAmhyroACGwwFCQ0ncuYACgkQXEn0O0LcklASVwEAoEkHMEU7mHc0zmAu
 D2R1PYsDh9+3wQeied5PrF+HdakBAOeSGsf40GBew5umZuM59I04d1uXYAXGMP+jGN2RUtMA
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832574
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/1fedcf74-a07c-4a07-abf8-cf4eab9b4cb4@gmail.com
Approved: robomod@news.nic.it
Lines: 19
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 22 Oct 2026 19:38:15 +0200
X-Original-Message-ID: <1fedcf74-a07c-4a07-abf8-cf4eab9b4cb4@gmail.com>
X-Original-References: <fb4588c5-2637-4714-81e6-791a9260afbd@gmail.com>
 <20261021150743.GA21484@wooledge.org>
 <b397ac30-dbff-4822-b314-c6cc97dc0df8@gmail.com>
 <atkI_Agk3vuY5vlg@phare.normalesup.org> <20261021190728.GB28455@wooledge.org>
 <slrn11dkb93.1hg.etphonehomefrance@einstein.home.arpa>
 <20261022154302.GF28455@wooledge.org>
 <20261022105402.03148c32@hawk.localdomain>