- uniq 去取重复的行
-c, --count prefix lines by the number of occurrences
- sort 排序
-r 以相反的顺序来排序
-n 依照数值的大小排序
- head 显示开头
-n 显示的行数
location ~ \.(woff|woff2|ttf|dds|map|js|css|jpg|png|gif|lang|ico|mp4|json) {
if ($request_uri ~* "^.*a\.js$ ") {
add_header Cache-Control no-store;
}
root /www-data/example1;
try_files $uri =404;
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read CMD; do | |
# each command begins with *{number arguments in command}\r\n | |
XS=($CMD); printf "*${#XS[@]}\r\n" | |
# for each argument, we append ${length}\r\n{argument}\r\n | |
for X in $CMD; do printf "\$${#X}\r\n$X\r\n"; done | |
done < redis_commands.txt |
OlderNewer