Mailinglist Archive: opensuse (686 mails)

< Previous Next >
Re: [opensuse] bash: how to get file extension
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Mon, 15 Jul 2013 11:21:26 +0200 (CEST)
  • Message-id: <alpine.LNX.2.00.1307151111410.2653@Telcontar.valinor>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Monday, 2013-07-15 at 11:01 +0200, lynn wrote:

Hi everyone
How do I get the mp4 from this?
video_id="Robin Thicke - Blurred Lines ft. T.I.,
Pharrell-yyDUC1LUXSU.mp4"

You can use "basename" to get, well, the base name without the rest. Well, the rest is considered the path, because "extensions" do not exist in Linux :-p

But it can remove an extension if it is known in advance. And what you want is getting the extension, right?

- -- Cheers,
Carlos E. R.
(from 12.3 x86_64 "Dartmouth" at Telcontar)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEARECAAYFAlHjvxYACgkQtTMYHG2NR9V3ZgCeNicFGS43q4CTb/65ihb0HDZs
B3MAmwW6IlBHLqTCa+avUj3rfTQxdoSk
=Nc9S
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References