Bash scripting: How to read data from text files
Here’s how to extract data from a text file such as reading in a list of servers to test connectivity to them.
Roberto Nozaki
Tue, 3/2/2021 at 1:21pm
Image
Photo by Ichad Windhiagiri from Pexels
Something that I like in Linux (and in Unix-like systems in general) is that configurations and properties are contained in text files. This allows an administrator with the right permissions to examine the files and make changes if required. Text files are also simple and convenient data sources for a sysadmin’s typical operations. In certain situations, you can use text files as an output to be shared with regular users as well. I cover examples of both cases in this article.
Topics:
Linux
Scripting
Read More at Enable Sysadmin