From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 781D0158020 for ; Sun, 23 Oct 2022 09:42:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7212E0845; Sun, 23 Oct 2022 09:41:54 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D922E0825 for ; Sun, 23 Oct 2022 09:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666518107; bh=V1F9raeHQ1x0LGARGxgler+ceTC3CEV2dOd3B4Xq2mU=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=d10GpzG1jnIIHYz2CVNJyO4c0iym4vsYycNUJPnRx8pdDHJ2DsAuJQOhpqTZPlH7u biQEmQle1i2TVR6RC3PbS1otGMOXF7WxBxXcFC4NiHXdobDDeKcdcxP89slz0ggxoC JUT/Ib4/Io/hqC7uVNUEJEUuAHe7ekbO1uIf9tp0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from tp ([92.117.58.116]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MDQiS-1ouoxg3xDi-00ATy1 for ; Sun, 23 Oct 2022 11:41:47 +0200 Date: Sun, 23 Oct 2022 11:41:44 +0200 From: Frank Steinmetzger To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Dolphin and adding a option, if it exists. Message-ID: Mail-Followup-To: gentoo-user@lists.gentoo.org References: <6ef36d93-4d8a-d9a4-ca71-396040103a25@gmail.com> <20221006134500.6f0812b9@digimed.co.uk> <62ebaa87-f750-b233-f8b4-ee50ef00bdfa@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u3zlB8EyzdN8VRFv" Content-Disposition: inline In-Reply-To: <62ebaa87-f750-b233-f8b4-ee50ef00bdfa@gmail.com> User-Agent: Mutt 2.2.7; VIM - Vi IMproved 9.0 X-Provags-ID: V03:K1:myu6GlQ7eNPf/g2oAnad9W6kASqMXiF1ZLIRFTYeZQhNRe8Inbq aLmURAA7rHLOrm0eAOnXluB6rkrBXH/WxYoXDvgZTJGVul+3B2aL801VysmDH9CMobfKupv E0CHjb+Ag8xJk8iMlJPsbxrius6CQeNDGvv0OtBDZWTtTs6bFHg1WSSSqbwLps9nA1pj/uy 6LT7+43PcQWCzknnqVksA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:sjF0g0WdBrA=:dtTYHp+zKA6ZKaVY+ARJZg 6M2R9Vlj3GrvFyuQysHb0a/+BUTAiq1HFnP3wNw8ogfVX33HExpTvbQfweWYX6DbT0M3MiycK e6c7/lNHirLbTk9ANMIPOAwJuREIUGRuGX0w61O07OuNCoYw3kSSYcN6jMtZWDwAJC4O1L2v8 Rf2kMpuS8n93YGe8CTgbbXd+OMpfMokFGobxAWteeSrOmCtMXwsTxQ7VDmIaN97Wc5qU+Euad yNRhUvQFnvhra0xh9Q9diJKQAVLLN+3sxicqLixVIxv+dl25Bb4/dCzT0/ENDYmN8CatzoOB7 anAxBD+4MvS7WJZuhLIs8BAFgS7Eneq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R0OMOjLJwdxrdacmESadl5irY+FW01GtkyVXpyQlM7cGYaNFK31ETxaZBG2KyDGd D37q8Uu8k/Mrb3Dc2zwtBgv01+PvuIY0y2xQ1VPRphI6g+Q+9MU+iBL9+UtL1fvtTgVuN2ep4 EGYntdjWcmMuMKHrJvVKrIfswmgsAANzEIGGvFZrA8dJe X-Archives-Salt: 025c160f-94bf-4e39-9ebf-f2d8988dbec1 X-Archives-Hash: d779c17fa8ac527f1309b3e9d71d9b40 --u3zlB8EyzdN8VRFv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Sun, Oct 23, 2022 at 01:35:55AM -0500 schrieb Dale: > Well, I ran into a slight problem.=C2=A0 This isn't much of a problem with > Linux but I'm not sure how this would work on windoze tho.=C2=A0 The prob= lem, > if it is one, is the file extension.=C2=A0 Let's say I have a mp4 file th= at > is the older original file that I intend to replace.=C2=A0 If the file I > intend to put in its place is a .mkv file, mv uses the .mp4 extension > because all it cares about is the name of the file, not what it is or > its content.=C2=A0 So, I end up with a .mkv file that has a .mp4 extensio= n.=C2=A0 > It works here on Linux but not sure about windoze and such. It=E2=80=99s not a problem for as long as the application you open the file= with does its own detection. I.e. you feed mp4 to mpv, but it recognises by itself that it=E2=80=99s mp4 and can handle it. > I looked at the man page and I don't see a way to tell it to retain the > extension.=C2=A0 I see something about suffix but I don't think that is > related to this.=C2=A0 If I just backspace and change the extension, it > basically moves the file and I end up with both the old and new file.=C2= =A0 I > wish I could write code and create a tool for this.=C2=A0 :/=C2=A0 > > Is there a way to work around this problem?=C2=A0 It works great except f= or > losing the file extension.=C2=A0 If you still want to stick to a terminal solution akin to mv, then there is no way around a little script which wraps mv by extracting the extension and filename base. You could also add some =E2=80=9Cintelligence=E2=80=9D with = regards to directories, in order to reduce the amount of effort required to use the command=E2=80=94in case your directories follow some schema or are constant. #!/usr/bin/sh [ "$#" -ne "2" ] && exit 1 SRC=3D"$1" DST=3D"$2" SRC_EXT=3D"${SRC##*.}" DST_BASE=3D"${DST%.*}" # remove destination for the case that the extensions differ rm "$DST" mv "$SRC" "${DST_BASE}${SRC_EXT}" --=20 Gr=C3=BC=C3=9Fe | Greetings | Salut | Qapla=E2=80=99 Please do not share anything from, with or about me on any social network. =E2=80=9CIf you enjoy wasting time, is that time really wasted?=E2=80=9D = =E2=80=93 Philosoraptor --u3zlB8EyzdN8VRFv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmNVDFYACgkQizG+tUDU MMoGTxAAq5SewTujbfy/NoOnbBu7OFV12Oo5qzUvmvdfGaN6B3WXCiJC+CABDnB0 Mx0pDwZBMsU7nm7v/Ta+E/jq23Eh2yXhSj0+ykD2EXx6G7oA4PSnJSkMSbWKdTPZ PZzD3xvoMl3q9eq7Yq/QtiybrCsRlLSJrcL7LluJcnR8YYn61+KhO6P/8/362F8Y DwltqYSqLyvhoXZCz+jFbMoNVtJlIKPXJdw2C1tZ8ib7IgluMju2Us1+fFanlxl/ EqgInYHSSPJwYM4bnY36uClbTe30TjNmYLw4B8HLxeh62ry5HjEH1lXFhQVa+uvk HvZ5ava72hjNPd11pYy7nzIG/5OzDHrHucRiVryY37Vse/arxsoCF449ja3oIrta wtdyil/XMGgXORYTCB3WBLGX/pb87j6qLZ/5F1rtyrG3eRJNcVl7Dtn+sBeo+Xtz NqyurutmvORGt5nEsGdvLpjntPD+nM5Kt0QinlNJi+JAiU2NtLgMP9h4YIPu1fRU Y3OcHGgjvLB/+HgTjocnGVORTcJ3x+dgi+99u5w8t0Ef4XIa8hAwacYe8Wcsjsw7 qIFiraM65Wl2882ZLZ5dno+gT0T72O1QFtQ4GOi6LDBNHtfbs7xUMCtfuQZiq21g cbbD+m8t1jNzO+ouxI5XfkY8vEdQFwiXc1SQnCPjyLHogb5cIss= =MzLa -----END PGP SIGNATURE----- --u3zlB8EyzdN8VRFv--