Python Forum

Full Version: Print the number of items in a list on ubuntu terminal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey all.
In return of a command, I have the following output on my ubuntu terminal.
Output:
tshark: Display filters were specified both with "-Y" and with additional command-line arguments. 21 List of ARFCNs = 62 53 List of ARFCNs = 62 60 58 57 55 54 53 52 51 50 49 25
I want a python code that prints the number of entries in the first list i.e. 2.
Please help.
what have you tried so far?
Please show code working or not
Why Python? Why not just a shell pipeline with say, AWK (other tools are probably also suitable)? Is your goal to learn Python?