8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Heyas
I'm trying to add color 'support' to my TUI.
It works, but behaves weird.
Code in question: (status.conf)
R="\033" ; TUI_WORK=""
TUI_DONE="" ; TUI_FAIL=""
TUI_SKIP="" ; TUI_NEXT=""
TUI_BACK="" ; TUI_CANC=""
TUI_ON="" ; TUI_OFF=""
TUI_INFO="" ; TUI_HELP=""
The... (4 Replies)
Discussion started by: sea
4 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
Can we have colour the matched pattern with any color using unix command? For example I have a very length line a file and I'm applying grep on that file.
grep "matched pattern" filename.txt
My output is like below,
...........matched... (2 Replies)
Discussion started by: poova
2 Replies
3. Shell Programming and Scripting
Hi all,
is there anyone good at bash who will help me?
I need to use syntax ${string/pattern/replacement}
The problematic part where I am stuck is:
#!bin/bash
text="A cat is on a mat."
exp="cat"
newexp="SOMECODEcatSOMECODE"
newtext=${${text}/${exp}/${newexp}}
== > ERROR "wrong... (4 Replies)
Discussion started by: JohnnyM77
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Ive spent ages trying to find an explanation for how to do this on the web, but now feel like I'm :wall:
I would like to change each occurence (there are many within my script) of the following:
to
in Vim. I know how to search and replace when it is just single lines... (2 Replies)
Discussion started by: blueade7
2 Replies
5. Solaris
I downloaded vim.7.2 and compiled the vim source .
Added the vim binary path to PATH (Because iam not the root of the box)
when i load the file using vim it throws me an error
Error detected while processing /home2/e3003091/.vimrc:
line 2:
E185: Cannot find color scheme darkblue
line... (0 Replies)
Discussion started by: girija
0 Replies
6. Shell Programming and Scripting
My script prints lines in which the entire line may be colored, and portions may also be colored. e.g.
Consider this to be one line:
$red some text in red $yellow abcd $end_yellow red text 1234 $blue some text $end_blue more red text $end_red
So using sed, I may based on condition 1,... (5 Replies)
Discussion started by: sentinel
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
i am using VIM editor through Putty. By the option of Syntax on in .vimrc file i am able to see syntax colors in .c and .cpp files but not in the files with .pc extension.
How can this be done?
:confused: (2 Replies)
Discussion started by: RuchK
2 Replies
8. Cybersecurity
How can I be assured that my machine is secure against buffer overflows, remote packet sniffing, and brute force attacks?
Why does the internet have to be so scary? Why can't we all just get along? (2 Replies)
Discussion started by: JoeTheGuy
2 Replies