10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I would like to execute and external command and insert it into a particular area of the file I am editing. Note that I have the ORIGINAL AT&T vi training doc dated 1987. Doesnt explain it.
As an example, in a vi editor I have
I would like the result :
After executing the following... (1 Reply)
Discussion started by: popeye
1 Replies
2. Shell Programming and Scripting
how can i search each line for ROCT and ROCT1.ROCT1 will be always 1 line after ROCT.
Both the patterns will be found at the end of the line (in alternate lines)
<pattern file>
(rising edge-triggered flip-flop clocked by ROCT)
Endpoint:... (2 Replies)
Discussion started by: dll_fpga
2 Replies
3. Shell Programming and Scripting
How can I insert the command executed on the shell into the first line of my output file?
For example if I execute;
zcat *.gz |grep “User5501” > users.out
How can I make my users.out look like;
zcat *.gz |grep “User5501” > users.out
User5501 PA
User5501 UA
User5501 ZA... (3 Replies)
Discussion started by: lewk
3 Replies
4. 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
5. Shell Programming and Scripting
Hi All,
I was looking to open a file using vim within shell script. Can someone please suggest a way/syntax for this?
Thanks in advance. (5 Replies)
Discussion started by: jal_capri
5 Replies
6. UNIX for Dummies Questions & Answers
While using vi or vim on different boxes, I experience different behaviors when I'm inserting (i) or writing on a new line (o). On the Linux box, I can insert and delete with my backspacekey while in the insert mode. It acts a little more like pico,nedit, etc. On the SunOS box, it's a headache... (3 Replies)
Discussion started by: mrwatkin
3 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I am very new to this forum and also new to UNIX.
I am working on HP-UX machine. I noticed that for some of the users I am unable to insert the # character in a file in vi mode.
May I know y am I having the problem and how can I resolve this
Thanks,
Maroli (1 Reply)
Discussion started by: maroli
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
When working in vi, the CTRL+j command for merging lines is very convenient. Is there an equivalent for splitting them (inserting a line break)? I often find myself pressing "i" + "return" + "esc", which I find a bit lengthy.
Thanks in advance! (3 Replies)
Discussion started by: Skogsmulle
3 Replies
9. Shell Programming and Scripting
Hi,
I need to send "^[" command to the buffer.
I tried to use insert within VIM and press 'ctrl' key and then '^' and '[' key.
but it didn't work.
Does anyone know how to do it?
Thanks a lot!
Julie (2 Replies)
Discussion started by: cin2000
2 Replies
10. Shell Programming and Scripting
Hi. Thanks for any help with this. I'm not new to programming but I am new to shell programming. I need a script that will
1. execute 'df -k' and return the volume names with specific text
2. surround each line of the above results in opening and closing xml tags
3. insert the results of step... (5 Replies)
Discussion started by: littlejon
5 Replies