Search Results

Search: Posts Made By: kowit010
10,971
Posted By Jenny Daisy
I like your forum, I think it says something that...
I like your forum, I think it says something that is very reasonable. I will always look to this forum, hoping each time to see some different things.
10,971
Posted By Corona688
[ $FILE == "" ] You only get == in bash and ksh,...
[ $FILE == "" ] You only get == in bash and ksh, and even then, only in [[ ]] not [ ].

Try [ -z "$FILE" ] instead, that should work in any shell.

---------- Post updated at 09:47 AM ----------...
10,971
Posted By MacMonster
You already put the content lines of the file...
You already put the content lines of the file into an array, so you can use the array index to display the line number. Using an extra counter is not necessary. Please see the comments in the code...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy