ICT: Diary
D: 28 W: 05

< August 2024 >
Sun Mon Tue Wed Thu Fri Sat
 123
45678910
11121314151617
18192021222324
25262728293031

Based on notaweblog.php by joshua stein

[ ] Wednesday, 21 August 2024 [ ]

Shell Programming

The redirect in the following command was not working:

doas tcpdump -netttXi iwm0 | grep 'who-has' | awk -F' ' '{ print $10; }' > ipaddr

I realised that I could simplify the command:

doas tcpdump -netttXi iwm0 | awk -F' ' ' /who-has/ { print $10; }' > ipaddr

but the redirect was still not working…


$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $