Question: How Do You Cut a String Before a Specific Character in Unix?
Contents How Do You Cut a String After a Specific Character in Unix? 7 Answers What If the Original String Had More Than One: Character? Like [Email...
Contents
How do you cut a string after a specific character in Unix?
7 Answers
- what if the original string had more than one : character? Like [email protected]:administrators:/home/some/directory/file . …
- @SopalajodeArrierez, The given command will just work. See (because the .* will match as much as possible: greedy) – falsetru Feb 21 ’15 at 7:05.
23 авг. 2013 г.
How do you cut a string in Unix?
To cut by character use the -c option. This selects the characters given to the -c option. This can be a list of comma separated numbers, a range of numbers or a single number.