![]() |
2011-11-23
, 20:10
|
Posts: 99 |
Thanked: 65 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/'
![]() |
2011-11-24
, 20:12
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#3
|
![]() |
2011-11-24
, 22:17
|
Posts: 99 |
Thanked: 65 times |
Joined on Jan 2008
@ Finland
|
#4
|
![]() |
2011-11-25
, 08:31
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#5
|
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; 2011-11-24 at 20:11.