Commit 5ee84b35 authored by Vitaly Lipatov's avatar Vitaly Lipatov

strings: add skip_initial_letter

parent 82296327
...@@ -33,9 +33,15 @@ drop_args() ...@@ -33,9 +33,15 @@ drop_args()
initial_letter() initial_letter()
{ {
echo "$1" | head -n1 | cut -c1 echo "$1" | head -c1
} }
skip_initial_letter()
{
echo "$1" | cut -c2-
}
is_dirpath() is_dirpath()
{ {
[ "$1" = "." ] && return [ "$1" = "." ] && return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment