vi <filename> without numbering for few files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers vi <filename> without numbering for few files
# 1  
Old 03-11-2005
vi <filename> without numbering for few files

my general setting is to whenever vi <filename> , it opens that file with set number enabled.

for few files i dont need numbering

so manually doing :se nonu inside vi

Can while opening the file give parameters or arguements to open it
without numbering..

Last edited by vkandati; 03-11-2005 at 04:32 PM..
# 2  
Old 03-11-2005
Code:
vi +'set nonu' filename

# 3  
Old 03-14-2005
You could also make this into an alias (tcsh), such as

alias vino "vi +'set nu'"
to open with no numbering just run
vino <filename>
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

List files after a certain filename

Requirement: I need to ls all files based on date timestamp after a trigger file In the below example, I need to pull only files uploaded after orders.bmk by date timestamp ascending. ORDERS_0000000009877468.txt ORDERS_0000000009877464.txt ORDERS_0000000009877460.txt... (9 Replies)
Discussion started by: eskay
9 Replies

2. Windows & DOS: Issues & Discussions

Move all files with pattern in filename

Well. I would love to have a way to: 1.) search a folder, lets say: X:\Files for any file that contains a "Conflict" in its filename (only!) (recursively so it searches the whole contents of the folder) 2.) Move all files to another Folder. All this under DOS. Any help... (6 Replies)
Discussion started by: pasc
6 Replies

3. Shell Programming and Scripting

Editing all files inside folders and updating pos 88-94 with continuous numbering.

Here is expected output:- For each file with following file name pattern we need to look at position 1 inside first file matching our search criteria if first letter of the line is 5 then position 88-94 will be 0000001 then look for line immediately after 5 which starts with i.e. position 1 = 8... (6 Replies)
Discussion started by: lancesunny
6 Replies

4. Shell Programming and Scripting

Using bash to separate files files based on parts of a filename

Hey guys, Sorry for the basic question but I have a lot of files that I want to separate into groups based on filenames which I can then cat together. Eg I have: (a_b_c.txt) WB34_2_SLA8.txt WB34_1_SLA8.txt WB34_1_DB10.txt WB34_2_DB10.txt WB34_1_SLA8.txt WB34_2_SLA8.txt 77_1_SLA8.txt... (1 Reply)
Discussion started by: Breentax
1 Replies

5. Shell Programming and Scripting

Sort files by date in filename

Hi, I am a newbie to shell programming and I need some help in sorting a list of files in ascending order of date in the filenames. The file format is always : IGL01_AC_D_<YYYYMMDD>_N01_01 For example, in a directory MyDirectory I have the following files: IGL01_AC_D_20110712_N01_01.dat... (11 Replies)
Discussion started by: Yuggy
11 Replies

6. Shell Programming and Scripting

Copying files using $filename

Hi, I've a problem. Here is the code: #!/bin/ksh echo "enter a file name" read a cd /home/linux1/sam if then echo "file exists" cp $a $a_bkp else echo "file doesn't exist" fi when executed the o/p is: enter a file name contact file exists cp: missing destination file (4 Replies)
Discussion started by: sam_bd
4 Replies

7. Shell Programming and Scripting

Finding files with filename format

hi all, i'm trying to find out how to show files having a particular format. i.e. files o570345.out o5703451.out XX_570345_1.RTF so when i search for files using ls *570345* it shows all three files but actually i don't like to see the second file o5703451.out because 5703451 is... (6 Replies)
Discussion started by: adshocker
6 Replies

8. Shell Programming and Scripting

Filename from splitting files to have the same filename of the original file with counter value

Hi all, I have a list of xml file. I need to split the files to a different files when see the <ko> tag. The list of filename are B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml ... (3 Replies)
Discussion started by: natalie23
3 Replies

9. UNIX for Dummies Questions & Answers

mv files based on filename

I have a directory of about 30,000 image files. The file names are all yearmonthday.jpg however some of the files have yearmonthday-snapshot.jpg i would like to move all files that contain the phrase -snapshot to their own directory. Any assistance with the proper commands would be much... (1 Reply)
Discussion started by: jdblank
1 Replies

10. Shell Programming and Scripting

compare two files using filename

I want to compare two file using filename. suppose two files are same directory. what is the command for this. thanks in advance... (3 Replies)
Discussion started by: rinku
3 Replies
Login or Register to Ask a Question