Search

Finding the string length in scripting

Here are three scripts for finding the length of string using scripting

1. Using bash string operation



2. Using grep



3. Using wc



Save them and give them execute permission e.g.

Execute it



Thus giving the correct length of the input string.

Follow by Email