Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
shell substring last characters
Eric
Programming language:
Shell/Bash
2021-05-26 01:53:09
0
Q:
shell substring last characters
elmato
Code:
Shell/Bash
2021-02-19 23:22:17
echo -n $str | tail -c 1 # gets the last character, increase number to get more characters
0
Tags
string
shell
sub
character
characters
last
Related
bash show special characters in file
bash split and get last
find number of occurances of a string in a file shell
bash print last n lines of file
shell count lines output
bash remove characters from end of every line
bash count lines
substring in shell script
bash ls without substring
shell count number of lines
bash delete first n characters of each line
shell reverse lines
bash print lines that match any of several words
get string after character shell script
New to Communities?
Join the community