How ToPlatform NameCommand LineNotesActions
Use a variable.AWKawk 'BEGIN {count = 0} {count++} END {printf "Count is %s\n",count}' /etc/network/interfacesCount will contain the number of lines in the file, be aware, that, the BEGIN and END keywords are case sensitive.Edit Delete
Remove lines from a text file containing specific text using gawk.AWKgawk -i inplace '!/docker/' /etc/.bashrc.The example shown removes all lines containing "docker" from /etc/.bashrc gawk is an alias of awk...Edit Delete
Addlestone, United Kingdom
Fog
2.3 °C
Fog
17-12-2025 08:11
CommandsWebsite deployed by github on Thu 13 Nov 10:46:02 GMT 2025