User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







bash:how_to:start

This is an old revision of the document!


bash: How To

* remove * remove first character x in string

VAL=${VAL/__x__/}

* remove last character x in string

VAL=${VAL/__x__/}

* remove first n characters

VAL=${VAL:__n__}

* remove last n characters

VAL=${VAL::-__n__}

* extract * extract characters from position n to m

VAL=${VAL:__n__:__m__}

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
bash/how_to/start.1533228336.txt · Last modified: 2024/02/16 01:02 (external edit)

Impressum Datenschutz