We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
还没有想好结果呈现的格式,这个feature应该会在统计模式之后实现
Sorry, something went wrong.
#!/bin/bash ip="$1" # 统一提取参数 if [ -e $ip ] then ip=$(curl -s https://ifconfig.io/ip) fi # 定义处理函数(避免重复代码) process_output() { local db_name=$1 local output output=$(NALI_DB_IP4="$db_name" nali "$ip" 2>&1) # 安全处理换行符 output="${output#"${output%%[![:space:]]*}"}" # 去开头空白 output="${output%"${output##*[![:space:]]}"}" # 去结尾空白 printf "%-15s -> \033[32m%s\033[0m\n" "<$db_name>" "$output" } process_output ipip process_output ip2region process_output qqwry process_output zxipv6wry
这个enhancement很长时间了, 我先写了一个shell脚本凑合着。
enhancement
shell脚本
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: