- La colaboración entre Seguridad y FinOps puede generar beneficios ocultos en la nube
- El papel del CIO en 2024: una retrospectiva del año en clave TI
- How control rooms help organizations and security management
- ITDM 2025 전망 | “효율경영 시대의 핵심 동력 ‘데이터 조직’··· 내년도 활약 무대 더 커진다” 쏘카 김상우 본부장
- 세일포인트 기고 | 2025년을 맞이하며… 머신 아이덴티티의 부상이 울리는 경종
Bash command cheat sheet
$ for num in {1..3}; do > echo $num > done 1 2 3
Note that it’s also possible to use brace expansion multiple times in the same loop. Note the use of outer and inner braces.
$ echo {{1..3},{7..11}} 1 2 3 7 8 9 10 11
Substring manipulation
There are several ways to extract substrings in bash scripts. One of the easiest is to a bash command like this:
$ target="my cat Bella" $ echo ${target:7:6} Bella
You can use a command like the echo command shown below to capitalize (replace) the first letter in a string.
$ name="joseph" $ echo "${name/j/J}" Joseph
Bash commands wrap-up
This cheat sheet for scripting in bash provides command examples along with explanations of how these commands work. Comments and suggestions are welcome.