#!/bin/sh
// đổi hang loạt file.rb.txt thanh file .rb
for f in *.rb.txt; do
mv "$f" "${f%.txt}";
done
// đổi hàng loạt file.txt thành file.rb
for f in *.txt; do
mv "$f" "${f%.txt}.rb";
done
#!/bin/bash echo -n "nhap file can tim kiem: " read file name_file=$(find / -name $file) echo "ket ...Read more »
#!/bin/bash echo "nhap n tu ban phim: " read n s=0 for ((i=1; i<=$n; i++)) do let s=s+1 done echo...Read more »
#!/bin/bash echo -n "nhap n: " read n for ((i=0; i<n; i++)) do read -p "a[$i]= " a[$i] done...Read more »
#!/bin/bash # %CPU a=$(ps -eo pcpu | awk '{tongcpu+=$1} END {print tongcpu}') echo "tong % CPU la: $...Read more »
bai 1: su dung awk in tat ca file /etc/passwd awk '{print}' /etc/passwd hoac co the viet awk '{print...Read more »
0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.