Posts Tagged ‘console’
Have you ever started writing a one-liner and half way in realized it was a bit more complex than you first thought?
If your shell is bash, next time that happens try ctrl-x ctrl-e.
It will take your current line and stuff it into the your default editor (export EDITOR=vim).
Last week I stumbled on a nice console regex helper. It’s not that I’m bad at regex but switching between sed, vim, python, perl regex trips me up a bit sometimes.
Go ahead and check it out for yourself
sudo aptitude install txt2regex
[.]quit [0]reset [*]color [/]programs ^txt2regex$
!! not supported
RegEx perl :
RegEx php :
RegEx postgres:
RegEx python :
RegEx sed :
RegEx vim :
.oO()()
[1-2]:
start to match:
1) on the line beginning
2) in any part of the line
As I have said before life at the terminal is a joy. I constantly struggle with keeping myself organized. I actually work pretty well keeping most things in my head. But one of these days I’m going to fall down and hit my head and forget everything. So try and try again to keep myself organized and documented do I. I was recently pointed to TicGit its a ticketing system that is meant to integrate right into your repository. Well I’m not a developer but I can see the benefit for a terminal todo list and general ticketing for myself as well as my little script repository that is actually maintained in git. Well ok maybe maintained is a bit strong of a word. Anyway on to the good stuff. (more…)