til.duyet.net
blog
Search…
⌃K
Links
til.duyet.net
Search…
⌃K
🤪
Today I Learned
Data Engineering
☁
AWS
⚒
Tools
💻
Shell
env from ConfigMap or Secrets
☸
Kubernetes, Helm, Kustomize
🔄
Apache Airflow
🐳
Docker
Database
Google BigQuery
Apache Hive
AWS Redshift / Postgres
Presto
Programming
🍪
Rust
🐍
Python
👻
Golang
💎
Javascript / Typescript
✨
FE / React
Unix
Git - Pretty git branch graphs
Checking files in Docker build context
Bash get the directory of the current script
Vim
Find and replace
Miscellaneous
[Fig] Single machine and distributed system structure
Deploying Machine Learning Models at Scale
Bypass a Chrome certificate/HSTS error
Articles
Powered By GitBook

Bash get the directory of the current script

#!/bin/bash
​
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
Unix - Previous
Checking files in Docker build context
Next - Unix
Vim
Last modified 1yr ago
Copy link
Edit on GitHub