I need some help.
How can I list files starting with p or f and with the exact length of 3 characters?
I am trying to find out a string length when the string is stored in UTF-8.
I tried following approach:
Charset UTF8_CHARSET = Charset.forName("UTF-8");
byte abc = password.getBytes(UTF8_CHARSET);
int length = abc.length;
This gives me length of the byte array, but not number of characters in the string.
I found a website which shows both UTF-8 string length and byte length.
I have to find all files that have a minimum of 3 letters, starting with the letter "l".
I'm using this, but it also gives me the files with less than 3 letters.
ls | grep "^l"
Is it possible to determine a minimum length? I just know that the char "?" is used to exact lengths.