Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by hankknight
at 2024-11-17 07:40:06
Point:500 Replies:2 POST_ID:828801USER_ID:11403
Topic:
Linux;;
netstat -ant | awk '{print $4}' | sed 's/.*://' | tail -n +3 | sort | uniq -c | awk '{ print """ $2 "":" 555};' | tr '' ',' 1:
Instead of 555 for every item, I want the same value as this:
Expert: duncanb7 replied at 2024-11-17 08:24:59
Thanks
Have a nice and a good weekend
Duncan
Have a nice and a good weekend
Duncan
Accepted Solution
Expert: duncanb7 replied at 2024-11-17 08:06:10
500 points EXCELLENT
Please try it, it will echo out "22"
netstat -ant | awk '{print $4}' | sed 's/.*://' | tail -n +3 | sort | uniq -c | awk '{ print """ $2 "":" 555};' | tr '' ','|grep -o "555" |wc -l
is it what you want? otherwise could you write more about what result you want from
netstat -ant | awk '{print $4}' | sed 's/.*://' | tail -n +3 | sort | uniq -c | awk '{ print """ $2 "":" 555};' | tr '' ','
?
netstat -ant | awk '{print $4}' | sed 's/.*://' | tail -n +3 | sort | uniq -c | awk '{ print """ $2 "":" 555};' | tr '' ','|grep -o "555" |wc -l
is it what you want? otherwise could you write more about what result you want from
netstat -ant | awk '{print $4}' | sed 's/.*://' | tail -n +3 | sort | uniq -c | awk '{ print """ $2 "":" 555};' | tr '' ','
?