Bongnam's devlog
  • Home
  • About
  • ai
  • dev
Sign in Subscribe

dev

covers a variety of development-related knowledge, ranging from miscellaneous coding tips to broad software development topics.

[shell] Trimming fixed prefixes and suffixes from string variables
dev

[shell] Trimming fixed prefixes and suffixes from string variables

In shell scripting, there are often cases where you want to remove file extensions like `.txt` or `.png` from a string variable. In Python, you could use the `split` method, but how can you handle this simply in a shell script?
Read More
Bongnam's devlog © 2025
Powered by Ghost