Skip to content

Instantly share code, notes, and snippets.

@jctourtellotte
jctourtellotte / bash-filepath-parts.md
Created February 2, 2024 11:56 — forked from refo/bash-filepath-parts.md
Extract file name / file path parts using bash

Extract given file path into its parts

Assuming, file passed as a parameter

path=$1

following script will extract file path into parts