Skip to content

Commit

Permalink
Update 'iwd'.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rern authored Feb 8, 2024
1 parent b79da2a commit 56ca342
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions 'iwd'.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ while (( ${#name} > 0 )); do
done
ssid=$( echo -e $hex )

# remove color encoded lines
sed $'s/\e\\[[0-9;:]*[a-zA-Z]//g' <<< $stdout
# remove encoded color from stdout
sed $'s/\e\\[[0-9;]*m//g' <<< $stdout

# ssid only list
iwctl station wlan0 get-networks \
| sed -e '1,4 d
' -e $'s/\e\\[[0-9;]*m//g
' -e 's/^ >/ /' \
| awk 'NF{NF-=2}1 && NF'
```

0 comments on commit 56ca342

Please sign in to comment.