Memo

De Linuxmemo.


egrep -v "^(#|$)"

ls $PWD/awstats.pl
for i in $(ls *.m4a);do avconv -i $i ${i/.m4a/.mp3} ; done
mkdir rep{1,2,3}
cp ntp.conf{,.bak}
echo {1..111}
echo {1,2,3,4,5}

echo $((1+1))

https://www.networkworld.com/article/3087606/linux/chomping-down-on-bashs-brace-expansion.html

insert -- between the command (like cp) and its arguments. That tells it to stop scanning for options, and all is well
cp -- "$file" "$target"
Outils personnels