Hello,
as much as I like your post, the sed did not work for me. Now is because my machine is compromised in some way or is there a typo? I am not a sed master so can't tell.
$> echo "feature/444-ala-bala-dala" | sed -E -e 's:^(\w+)\/([^-]*-[^-]*)-.*:\2:' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' FEATURE/444-ALA-BALA-DALA
Otherwise, it made me think about a lot of interesting things. Thank you.
Hey Saša,
It appears to be something wrong with your Terminal. Take a look at mine:
~/projects/git-hooks-templates master ✔ 11m ▶ echo "feature/444-ala-bala-dala" | sed -E -e 's:^(\w+)\/([^-]*-[^-]*)-.*:\2:' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' 444-ALA
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello,
as much as I like your post, the sed did not work for me. Now is because my machine is compromised in some way or is there a typo? I am not a sed master so can't tell.
Otherwise, it made me think about a lot of interesting things. Thank you.
Hey Saša,
It appears to be something wrong with your Terminal. Take a look at mine: