|
|
11-23-2011
, 04:10 PM
|
|
Posts: 98 |
Thanked: 63 times |
Joined on Jan 2008
@ Finland
|
#2
|
but real-time output doesn't:
airodump-ng wlan0 | sed -f list (no substitution takes place)
Can this be achieved with sed?
perl -e '$| = 0; foreach (1..5) { print "$_\n"; sleep(1); }' | sed 's/2/XYZZY/; s/4/foobar/'
perl -e '$| = 1; foreach (1..5) { print "$_\n"; sleep(1); }' | sed 's/2/XYZZY/; s/4/foobar/'
|
|
11-24-2011
, 04:12 PM
|
|
Posts: 959 |
Thanked: 932 times |
Joined on Feb 2011
|
#3
|
|
|
11-24-2011
, 06:17 PM
|
|
Posts: 98 |
Thanked: 63 times |
Joined on Jan 2008
@ Finland
|
#4
|
|
|
11-25-2011
, 04:31 AM
|
|
Posts: 1,233 |
Thanked: 1,912 times |
Joined on Feb 2011
@ Germany
|
#5
|
![]() |
| Thread Tools | Search this Thread |
|
cat file.csv | sed -f list (this replaces mac addresses as expected)
but real-time output doesn't:
airodump-ng wlan0 | sed -f list (no substitution takes place)
Can this be achieved with sed?
Last edited by szopin; 11-24-2011 at 04:11 PM.