Replacing first column value using VI

I have a Tab delimited file with first col value =I which i want to change to U.
Can I do this in VI? If so how?
Thanks
suresh
sollalaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tspfwjCommented:
Is this what you are looking for ?
:1,$s/I/U/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahoffmannCommented:
won' do what sollala wants :(
try:
:%s/^|/U/
0
tspfwjCommented:
s/^I/U/ will only work if the I is the first character on the line, correct ??
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

ahoffmannCommented:
yes, could be improved like this:
 :%s/[ \t]*|/U/
(where \t is tab)
while  s/|/U/ changes also lines where | is not in the first column, like:
    sometext containug |, but not in first column
0
tspfwjCommented:
I see what you mean, I had based the construct on her original quesion idicating that the "I" was in the first tab delineated column, you're right about changing the I anywhere on the line.
0
ahoffmannCommented:
oops, just saw that I should have writte I instead of |
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.