I am looking for some informations regarding a bash script.
I am using the commande lspi | grep -i net to get information toward network components.
My script is the following :
Rm allows me to reset the text file I am creating each time I run the script (or else it will keep adding in the file text without clearing it) [If you have any ways to do it better, I am taking it !]
This script is suppose to allow me to know if there is a wifi card, or not (and it works that way) and will be a part of a bigger one for several informations, to make a paper that will be automatically printed and fullfilled.
My problem here is that I would like to copy paste to “Network Controller” line and informations into a text file (or have it in any way)
I tried multiple things but Ican’t find any way to do so, atleast from the terminal itself
Would anyone have any tips about doing that ?
Thanks in advance