Yes, thanks many & very appreciate that..
By the way, what if i've a various numeric number at all the line in my file and i just intend to replace the 1st digit only with character "X". Example,
my file
ddpadsgag506xghssuyj_3#ods
ddpadsga446xghssuys_47#523
ddsadsgagh396xghssuy_te_3.4
ddsadsgag506xghssuy_pe_3.35
ddsadsgag326xghssuys
ddsadsgag506ighssuys_eng
ddsadsgag506pghssuyk
result
ddpadsgagX06xghssuyj_3#ods
ddpadsgaX46xghssuys_47#523
ddsadsgaghX96xghssuy_te_3.4
ddsadsgagX06xghssuy_pe_3.35
ddsadsgagX26xghssuys
ddsadsgagX06ighssuys_eng
ddsadsgagX06pghssuyk
try this (i haven't tried myself):
Quote:
Originally Posted by 793589
And what command should i apply to eliminate the content after _3 at end of the line. Example,
my file
ddpadsgagX06xghssuyj_3#ods
ddsadsgaghX96xghssuy_te_3.4
ddsadsgagX06xghssuy_pe_3.35
result
ddpadsgagX06xghssuyj_3
ddsadsgaghX96xghssuy_te_3
ddsadsgagX06xghssuy_pe_3
I use vim. I have a lot of SQL queries to write, and am hoping there is some wild command I can use in vim to make this simpler.
From a file that is a list of fields, like the excerpt, for example:
orderdetail.ccntyfips
orderdetail.citemord
orderdetail.coffdetid
I want to go to this:
... (2 Replies)
I want to install VIM 7.0 from sunfreeware.com onto a server.
The security guys are giving me a hard time because they found this security vulnerability.
http://xforce.iss.net/xforce/xfdb/6259
This vulnerability came out in 2001, and it looks like it was mostly for linux, but I cant be... (1 Reply)
I use vim for writing code. I was using nano but found that vim is a much advanced editor. I am trying to achieve something like this:
When trying a loop or a function, I generally type:
function name() {}
Now when I take my cursor one position to the left and press the return key, it give... (4 Replies)
How do I use compilers and syntax highlighting in (g)Vim?
Specifically, I need a Common Lisp compiler and a C++ compiler.
Thanks in advance!
(Note: Disregard my other topic.) (1 Reply)
Hi,
What is the actual difference between these two? Why the following code works for process substitution and fails for command substitution?
while IFS= read -r line; do echo $line; done < <(cat file)executes successfully and display the contents of the file
But,
while IFS='\n' read -r... (3 Replies)
Hi there. I'm new at UNIX, but want to learn and understand it. I'm reading the Fedora and RHEL book, but I'm not sure how to use vim to create an alias in my .bash_profile. Can you point me in the right direction please? ;) (2 Replies)
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)
Can someone please tell me what this does?
:f word
I thought that was the way to save files with a different name but after a quick google search I saw it was like this.
:w filename (4 Replies)