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

*removes within strings *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 characters from string *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.1533228553.txt · Last modified: 2024/02/16 01:02 (external edit)

Impressum Datenschutz