Search Results

Search: Posts Made By: Akilleez
7,741
Posted By birei
Hi, Try with Perl. Here an example: $...
Hi,

Try with Perl. Here an example:

$ echo '"one","two","three"' | perl -ne 'printf "%d\n", tr/"/"/'
6
Regards,
Birei
2,922
Posted By Corona688
BASH is a string language with weak types, so...
BASH is a string language with weak types, so copying an entire array around like that means having to handle it as a string.

There is an operator to turn an array into one string: "${ARR }" But...
Showing results 1 to 2 of 2

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