/ Published in: Bash
Basic bash loop structure
Expand |
Embed | Plain Text
for i in *.JPG; do echo $i; done #!/bin/bash echo "Bash version ${BASH_VERSION}..." for i in {0..10..2} do echo "Welcome $i times" done # s="great song.flac" # echo ${s/ //} great/song.flac # echo ${s/ /} greatsong.flac # echo ${s// /} greatsong.flac
Comments
Subscribe to comments
You need to login to post a comment.

!/bin/bash
echo "Bash version ${BASH_VERSION}..." for i in {0..10..2} do echo "Welcome $i times" done
s="great song.flac"
echo ${s/ //}
great/song.flac
echo ${s/ /}
greatsong.flac
echo ${s// /}
greatsong.flac