?
Solved

Replacing first column value using VI

Posted on 2000-01-20
1
Medium Priority
?
229 Views
Last Modified: 2010-04-21
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
0
Comment
Question by:sollala
1 Comment
 
LVL 2

Accepted Solution

by:
dirc earned 40 total points
ID: 2371727
:1,$s/^I/U/

1,$ means do the entire file.
^I means replace 'I' if it is at the beginning of the line.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question