Task: Find the file name of all PNG files under the folder, copy xxx.html to file name .html, and replace xxx in xxx.html with the file name ls | grep.png | sed & #39; s /\. png \ * // & amp; #39; |. /cp. shcp. shwhilereadipdosed & #39; s/xxx/
Task
Find the file names of all png files in the folder, and copy xxx.html as the file name. html
Replace xxx in xxx.html with the file name.
Ls | grep. png | sed's/\. png \ * // '|./cp. sh
Cp. sh
While read ip
Do
Sed's/xxx/'"$ ip"'/G' xxx.html> $ip.html
Done
====================================
Statistics
Awk-F \ t/^ A/'{print $5 "\ t" $8 "\ t" $13 "\ t" $14 "\ t" $16 }' s_w_851_240_20120826.txt \ # filter data
| Sort \ # sort
# Defining variables
# Count the sales of $ = US
# Print the result
| Awk-F \ t' BEGIN {print "xxx"; total = 0}
$5! = 0 & $3 = "US" {print; total + = $2 * $5}
END {print total }'