2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 2412
/ 3 Years ago, sun, may 23, 2021, 5:46:10
I have a string abc_d_e75_f10_xyz_l_11
I want to split it so that I want to construct a string of an existing directory from this string to cd
to it.
So in this example abc_d_e75_f10_xyz_l_11
I want to split using the _
character where I want to write this command cd /home/userA/abc/d_e75_f10
and neglect the rest of the string.
More From » command-line