[bash] bash echo number of lines of file given in a bash variable without the file name