A
A
apheyhys2018-11-06 22:32:20
linux
apheyhys, 2018-11-06 22:32:20

How to calculate filename length in linux?

How to calculate filename length in linux?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Softer, 2018-11-06
@apheyhys

filename='sdsdsdsd'
echo ${#filename}

R
RidgeA, 2018-11-06
@RidgeA

`basename ~/.bashrc | wc -m`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question