skip to Main Content

Parsing an array with emty element – Ubuntu

Hello I am trying to parse a file into an array which contains empty elements Sample file (test) test11|test12|test13|test14 test21||test23|test24 the following funtion just print the array elements test_func() { local param=($@) echo "1: ${param[1]}, 2: ${param[2]}, 3: ${param[3]}, 4:…

VIEW QUESTION
Back To Top
Search