Keith
1
The terminal command date; iwlist wlan0 scan |grep -i quality outputs the current date/time and data about my wireless connection on two lines:
keith@desktop-1:~$ date; iwlist wlan0 scan |grep -i quality
Tue Feb 12 13:27:37 GMT 2013
Quality=54/70 Signal level=-56 dBm
Is it possible output both the date and data on one line?
How about:
echo $(date)$(iwlist wlan0 scan | grep -i quality)
?
Keith
3
You’re a star! What’s it like to know what you’re doing?!
I might have another one in a short while!
#!/bin/bash
for i in `iwlist wlan0 scan|grep -i quality`
do
echo -n "$i "
done
echo ""
Keith
5
Yep: that works, too. Not such a Mad Penguin, then!
Many thanks, gents.
Keith
7
But not, I trust, Spheniscus 