String manipulation using UNIX commands
Extract substring based on index.
e.g.
first_name=Jayanthi
short_name=${first_name:0:3}
echo $short_name
Output: Jay
Replace all occurrences of a text
:%s/search_string/replacement_string/g
Extract substring based on index.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home