10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to split a file based on headers found
Input file
file1 content:
ADD
john
mickey
DROP
matt
sam
output of file F1
john
mickey
output of file F2
matt
sam (5 Replies)
Discussion started by: Diddy
5 Replies
2. Programming
I am writing a program, and want to have the option for the program to
continue execution even should things go wrong. I use an option --ignore-errors.
The problem is what I do when an error occurs, set the values to zero, or fill them up with some values, for example taken from a simple unit... (3 Replies)
Discussion started by: kristinu
3 Replies
3. UNIX for Dummies Questions & Answers
Goodmorning,
I've some problem in using regular expression in a VIM syntax configuration file.
I've need to match a string as <<< some to match >>> so that it matches only some to match .
With standard regular expression i know that for this goal works fine the regex:
(?<=<{3}).*(?=>{3})
... (4 Replies)
Discussion started by: keltron
4 Replies
4. Ubuntu
Hi folks,
Ubuntu 9.04
I have an old box not running for years. I just dig it out from the store room. On running;
$ sudo aptitude update
......
......
Err http://hk.archive.ubuntu.com jaunty/main Packages
404 Not Found
Err http://hk.archive.ubuntu.com jaunty/restricted Packages
... (1 Reply)
Discussion started by: satimis
1 Replies
5. Shell Programming and Scripting
Mysql log has something like below:
I need a bash shell script that will do the following:
1) The script will scan the mysql.log file constantly in real time (something like tail -F mysql.log)
2) If it encounters 5 consecutive identical lines then it would invoke some commands (say... (4 Replies)
Discussion started by: proactiveaditya
4 Replies
6. UNIX for Dummies Questions & Answers
Hi all
What I want?
I want in Insert mode, press Alt-hjkl move cursor, and then back to insert mode.
I know ctrl-o, hjkl can do the job. but everytime I want to move, i have to press ctrl-o, or I have to count how many hjkl I will do, do a C-O (n)hjkl.
What I tried (example only with 'j')... (2 Replies)
Discussion started by: sk1418
2 Replies
7. 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
8. UNIX for Advanced & Expert Users
Does anyone know the fast way to go to tab/2 distance in vim.
I mean set four spaces. (1 Reply)
Discussion started by: mirusnet
1 Replies
9. Shell Programming and Scripting
Can someone explain me why sometimes the cursor can not be moved to needed position?
for example:
mysql -u root db -sBe "ALTER TABLE $i ENGINE=$ENGINE"; echo -e "${GG}OK${BB}";
In this line I can not go to position after $i, why?
This is not first time I see such issue.
"INSERT" pressed :) (0 Replies)
Discussion started by: mirusnet
0 Replies
10. Programming
Hi, there. Everyone had a great Thanksgiving?
I have a slice format problem when I am using vim to edit c++ source code. I don't know how to discribe the problem exactly. You see, usually when I use the command "vi hello.cpp" to write a code, it will have the format like this:
#include... (4 Replies)
Discussion started by: HOUSCOUS
4 Replies