421 reputation
146
bio website
location
age
visits member for 2 years, 5 months
seen 16 hours ago

I’m the enemy in the end.


Apr
21
awarded  Caucus
Mar
20
awarded  Yearling
Jun
3
awarded  Enlightened
Jun
3
awarded  Nice Answer
Mar
20
awarded  Yearling
Dec
6
comment Using sed get substring between two double quotes
@Jam88: No problem! Don't for get to accept an answer. You can choose your favorite answer by clicking the tick directly to the left of it. Cheers.
Dec
4
comment Using sed get substring between two double quotes
@JonathanLeffler: Good point. Thanks!
Dec
3
answered Using sed get substring between two double quotes
Dec
2
answered Explaining the -W flag for rm
Oct
30
comment Store grep output with formatting as it is to a file
@ParthShah: Read this: unix.stackexchange.com/questions/43735/ansi-escape-code-in-vim
Oct
30
comment Store grep output with formatting as it is to a file
@ParthShah: I use vim to do all my editing of files. Unfortunately I have not found a way to let vim easily "pass-through" all the escape codes that make up the formatting. I have however found this script which can parse the escape codes and uses the vim syntax highlighting to recreate the colour codes in the output. According to its description, it should do exactly what you want (but I have not tested it). If you're just looking to view your files you can scroll through them using: less -R newfile.txt
Oct
30
comment Store grep output with formatting as it is to a file
@ParthShah: How are you actually reading/viewing your file? You'll find that the above stores the formatted output exactly how you describe (notice how when you cat your file, it prints the formatted output to your terminal). The program you're using to read/view your file may be altering the file's formatting or cannot simply understand it.
Oct
27
answered Store grep output with formatting as it is to a file
Oct
23
comment Vim-like history in bash?
@naught101: Glad we got it working :-) Yes, using the up/down keys could be problematic (i.e. users may still want the option of history scrollback). You're right the ~/.inputrc file could be modified instead. But some users may not use it. I don't for example.
Oct
23
comment Vim-like history in bash?
@naught101: Did you remember to source your terminal? See step 2. Alternatively, close your terminals and open up a new one. It should then work for you. HTH.
Oct
23
comment Vim-like history in bash?
@naught101: The method I describe accomplishes exactly what you describe. But instead of using the up/down keys, you use alt-p/n. If this is not want you want, you should consider editing your question.
Oct
23
revised Vim-like history in bash?
added 615 characters in body
Oct
23
revised Vim-like history in bash?
added 615 characters in body
Oct
23
answered Vim-like history in bash?
Oct
18
comment Perl command not found
What's the results of: which perl?