Skip to main content
AmigoFish

'basename' - strip directory from filenames - Video Man Pages

From DistroTube · · 2 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.

If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.

Watch on YouTube

Not rated yet

Description

The 'basename' command strips directories and suffixes from filenames.

+ Print only the file name from a path: basename path/to/file

+ Print only the final directory name from a path: basename path/to/directory

+ Print only the file name from a path without the its suffix: basename path/to/file suffix

REFERENCED: ► https://gitlab.com/dwt1/vidman - Video Man Pages

WANT TO SUPPORT THE CHANNEL? 💰 Patreon: https://www.patreon.com/distrotube 💳 Paypal: https://www.paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW 🛍️ Amazon: https://amzn.to/2RotFFi 👕 Teespring: https://teespring.com/stores/distrotube

DT ON THE WEB: 🕸️ Website: http://distro.tube 📁 GitLab: https://gitlab.com/dwt1 🗨️ Mastodon: https://fosstodon.org/@distrotube 👫 Reddit: https://www.reddit.com/r/DistroTube/ 📽️ Odysee: https://odysee.com/@DistroTube:2

FREE AND OPEN SOURCE SOFTWARE THAT I LIKE: 🌐 Brave Browser - https://brave.com/ 📽️ Open Broadcaster Software: https://obsproject.com/ 🎬 Kdenlive: https://kdenlive.org 🎨 GIMP: https://www.gimp.org/ 💻 VirtualBox: https://www.virtualbox.org/ 🗒️ Doom Emacs: https://github.com/hlissner/doom-emacs

Your support is very much appreciated. Thanks, guys!

Back to DistroTube · Report a problem