Quantcast
Channel: bash – Distributed Life
Browsing latest articles
Browse All 6 View Live

Pattern Matching Hyphen-Minus Sign in Bash

I was trying to use the sed command to perform some changes to a text and stepped into an interesting “problem”; pattern matching the minus-hyphen (-) symbol. Assume we have the following text:...

View Article


git: How to revert a file to a specific commit

This entry is part 7 of 7 in the series git: useful HOWTOs git checkout COMMIT_HASH file/to/revert Will bring the file/to/revert file to the state in COMMIT_HASH commit.

View Article

Browsing latest articles
Browse All 6 View Live