1334

· 👁 9 views

#bash

I love #cli, scripts, and sometimes I want my script to accept an argument that is the same as the folder name. How to pass that current folder name to the script?

upload.py file.pdf --category "${PWD##*/}"

Yep, it works.