going to start of file in VI


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers going to start of file in VI
# 1  
Old 05-02-2003
going to start of file in VI

Ok , I know you hit shift G to get to the bottom of the file. How do you get to the top of the file
# 2  
Old 05-02-2003
Computer

Key in 1G, this will take you to the 1st line of the file

like wise 65G will take you to the 65th line
# 3  
Old 05-02-2003
Or just :1 ENTER, that'll take you to line 1.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Splitting week start date and end date based on custom period start dates

Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below. Could you please help out to achieve solution through shell script.. File content: ... (2 Replies)
Discussion started by: nani2019
2 Replies

2. Shell Programming and Scripting

How to tell UNIX to start from the oldest file?

Hello, I have a simple while loopinside the script and I wish to tell unix to start reading from the oldest txt file. So, in case some new txt files are transferred into the same folder, the script will not take into consideration until all older files are completely processed. How may I do this?... (3 Replies)
Discussion started by: baris35
3 Replies

3. Shell Programming and Scripting

How to extract start/end times from log file to CSV file?

Hi, I have a log file (log.txt) that which contains lines of date/time. I need to create a script to extract a CSV file (out.csv) that gets all the sequential times (with only 1 minute difference) together by stating the start time and end time of this period. Sample log file (log.txt) ... (7 Replies)
Discussion started by: Mr.Zizo
7 Replies

4. Shell Programming and Scripting

How to append data in file at start of file?

In unix - how to append data in start of file ? Please advise. Thanks (5 Replies)
Discussion started by: RahulJoshi
5 Replies

5. UNIX for Advanced & Expert Users

Replace a value in the file that start with quotes

I have to replace the specific encypted value in the file which is will be a taken as input from user always.PADWD appears two times in the document of which I need to replace the line which start with double quotes. Please help. "PADWD"\1\"LL9@99V@N=3M0O4I4;J43KH6"---Sample line in the file. ... (6 Replies)
Discussion started by: chandu123
6 Replies

6. Shell Programming and Scripting

Start program in background (or start crontab ahead of time)

Hey! I'm working on a script that will add a user, create some configfiles, and add a crontab for the user. The crontab looks like the following: @reboot /home/user/program config.conf & I would like for this process to start at the end of my script under the corresponding username by... (0 Replies)
Discussion started by: noratx
0 Replies

7. AIX

Q: how to start a service when system start

As topic, assume we have a service called "blahservice" and we can start it by: startsrc -s blahservice what is the best practice to run such command when system start? - directly use mkitab to add it into /etc/inittab or - drop startup scripts in /etc/rc.d/rcX.d I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies

8. Solaris

StartUP file to start a service

Hi guys: i have a Solaris 10 development server and a Solaris 9 production server. The entire task must be done in the dev. server. When it's done and all the testing is OK, the script or files are transfer to prod. Server. All right. Now I have to figure out a way to put a script to initiate... (2 Replies)
Discussion started by: bmathiasf
2 Replies

9. Linux

where to put an application if i want to start it on start up

hi i want to know the way by which i put any file somewhere and it get s started when the system restarts or bots i mean whenever my system starts that application must also start thanks (3 Replies)
Discussion started by: shukla_chanchal
3 Replies

10. UNIX for Dummies Questions & Answers

UNIX Start-up file location

I would like to know where to find the start-up sequence for UNIX. I would like to find the command that starts the database up and do not know where to look and I'm sure there is a file that contains this info. Where is it??? Thanks in advance. Dave. (3 Replies)
Discussion started by: daveo61
3 Replies
Login or Register to Ask a Question