You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
for i in $( ls ); do
echo item: $i
done
#!/bin/bash
for i in $(seq 1 10);
do
echo $i
done
#!/bin/bash
COUNTER=0
while [ $COUNTER -lt 10 ]; do
echo The counter is $COUNTER
let COUNTER=COUNTER+1
done
#!/bin/bash
COUNTER=20
until [ $COUNTER -lt 10 ]; do
echo COUNTER $COUNTER
let COUNTER-=1
done
rename files
for file in *.cc; do mv "$file" "$(basename "$file" .cc).cpp"; done
for file in $(find . -name *.cc); do mv "$file" "$(dirname "$file")/$(basename "$file" .cc).cpp"; done
lowercase filenames
for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done