Ask Dave Taylor: Tech and Business

Wednesday

Reading lines of data within a shell script

One of the most common core tasks that people perform with shell scripts is to read data and process it in some manner. Quite often, that's accomplished by using a pipe or command-line redirection, but sometimes you need to be able to read lines of data within the shell script itself, and it's not entirely obvious just how to do that for many shell script programmers. Curious about a fast and efficient solution, then? Learn more:

    Read lines of data in a Linux shell script

Hope it's helpful!