Skip to content

Commit

Permalink
调整了信号列表,按照信号mac地址排序显示
Browse files Browse the repository at this point in the history
  • Loading branch information
QianSong1 committed Mar 7, 2024
1 parent 8147288 commit 1a94a1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wireless-handshaker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ function prepare_server_client_list() {
sleep 2
target_line="$(cat "${work_dir}/dump-01.csv"|awk '/(^Station[s]?|^Client[es]?)/{print NR}')"
target_line="$(awk -v target_line="${target_line}" 'BEGIN{print target_line - 1}')"
cat "${work_dir}/dump-01.csv"|head -n "${target_line}"|dos2unix|egrep -v --text "^$"|sort -t "," -rnk 9 > "${work_dir}/server_list.csv"
cat "${work_dir}/dump-01.csv"|head -n "${target_line}"|dos2unix|egrep -v --text "^$"|sed -rn '1p' > "${work_dir}/server_list.csv"
cat "${work_dir}/dump-01.csv"|head -n "${target_line}"|dos2unix|egrep -v --text "^$"|sed -r '1d'|sort -t "," -dk 1 >> "${work_dir}/server_list.csv"
cat "${work_dir}/dump-01.csv"|tail -n +"${target_line}"|dos2unix|egrep -v --text "^$" > "${work_dir}/client_list.csv"

#zhun bei sniff client list
Expand Down

0 comments on commit 1a94a1f

Please sign in to comment.