This is a shell script to read a csv file into array and display the contents. Using an array is preferred we can keep track of no. elements in a row.For example:echo ${row[@]} will display all the elements of array.echo ${#row[@]} will display the no. of elements in the array.Also to get the 2nd elementContinue reading “Shell Script to read csv file into Array”
Tag Archives: Shell
Simple spin animation using shell script
Below shell script will do a simple animation of rotating “pipe” (|) . We use an array called spinner, with elements : ( ‘|’ ‘/’ “–” ‘\’ ). We loop through the elements each 0.1 secs to make it look like the rotating animation.