Compare commits

...
2 Commits
Author SHA1 Message Date
Luk c6e9a47b1c 增加 speed.sh 2026-09-25 12:48:24 +08:00
Luk 248217f3b7 u 2026-09-25 12:24:08 +08:00
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -2,11 +2,11 @@ echo "***************************************"
echo "find \$FOLDER -mindepth \$MINDEPTH -maxdepth \$MAXDEPTH -type d_f_l -name \"\$PATTERN\" | while read item; do echo \"\$item\"; done" echo "find \$FOLDER -mindepth \$MINDEPTH -maxdepth \$MAXDEPTH -type d_f_l -name \"\$PATTERN\" | while read item; do echo \"\$item\"; done"
echo "***************************************" echo "***************************************"
echo "To find in which path? Enter [root path] or [leave blank] for the current path [[`pwd`]]:" echo "To find in which path? Enter [root path] or [leave blank] for the current path [[$(realpath `pwd`)]]:"
read -p "path ***:: " FIND_FOLDER read -p "path ***:: " FIND_FOLDER
if [ ! "$FIND_FOLDER" ] if [ ! "$FIND_FOLDER" ]
then then
FIND_FOLDER=`pwd` FIND_FOLDER=$(realpath "`pwd`")
fi fi
read -p "mindepth ***:: " MINDEPTH read -p "mindepth ***:: " MINDEPTH
+5
View File
@@ -0,0 +1,5 @@
speed() { curl -sS -o /dev/null -w "http=%{http_code} dns=%{time_namelookup}
conn=%{time_connect} tls=%{time_appconnect} ttfb=%{time_starttransfer}
total=%{time_total}\n" "$1"; }
speed "$1"