Greetings!
I have a question about conditions in Bash scripts. I would like to know the difference between the use of parentheses and square brackets.
In the pursuit of my perfect text editor I've become stuck between two camps: a) distraction-free editors (namely, http://pyroom.org/ and http://gottcode.org/focuswriter/ ) b) syntax-highlighting editors (my current favorite being vim.) Looking for other solutions, or programs, to the problem laid out below.The benefit of the distraction-free editors is that, in being made for fullscree
In the pursuit of my perfect text editor I've become stuck between two camps: a) distraction-free editors (namely, http://pyroom.org/ and http://gottcode.org/focuswriter/ ) b) syntax-highlighting editors (my current favorite being vim.) Looking for other solutions, or programs, to the problem laid out below.The benefit of the distraction-free editors is that, in being made for fullscree
Normally commands such as ls and grep offer nice syntax highlighting for me. But my system crashed (running an ubuntu VM) and after I restarted, I no longer have this highlighting, it's all a dreary grey.
Nano, however, notably does do it's normal highlighting.
Normally commands such as ls and grep offer nice syntax highlighting for me. But my system crashed (running an ubuntu VM) and after I restarted, I no longer have this highlighting, it's all a dreary grey.
Nano, however, notably does do it's normal highlighting.
I'm using awk '{ gsub(/BAR|WIBBLE/, "FOO"); print }' to replace text in data like:
SOMETHING [BAR, WIBBLE]
SOMETHING [BAR]
This gives the desired result of:
SOMETHING [FOO, FOO]
SOMETHING [FOO]
But now I've had to update the text that requires replacing to be something like:
awk '{ gsub(/BAR|WIBBLE|ME/, "FOO"); print }'
Which turns text like:
SOMETHING [ME, WIBBLE]
into:
SOFOOTHING [F
Often, I read something like command time(1) or printf(3).
What do the numbers in the brackets stand for ?
Python indenting is wonderful! Enforcing readable code can only be a good thing: I've seen some utterly horrible lack of any sane indentation scheme before now.And semicolons and curly brackets as a syntax element instead? Ugh. It looks nasty, and makes code less readable. (Disclaimer: I only use python and shell script, so C and Java are pretty unreadable to me anyway...)
Yes, and that PS1 is the problem. You need to surround color codes (or any other non-printing characters with \[ \]. None of your color sequences are in these brackets.
Trilby
https://bbs.archlinux.org/profile.php?id=54694
2013-01-29T00:26:35Z