Sponsored Content
Full Discussion: Number of lines in vi
Top Forums UNIX for Beginners Questions & Answers Number of lines in vi Post 303034119 by ggayathri on Thursday 18th of April 2019 09:50:12 PM
Old 04-18-2019
Number of lines in vi

Is there a limit on the number of lines that can be copied into vi editor from another file? When I copy some data items from a file into the vi, I see a limit of 1780 lines can be pasted. After that there seems to be a limit.
How can this be increased?
As an example:, I open an excel file which has about 5000 records, which I am copying and pasting into a file, using vi editor. I then find that only 1780 records are getting copied. After that, it is not getting pasted. Is there a limitation in vi? Or can this be increased?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

total number of lines

Hi have following file |abcd 2|abcd |sdfh |sdfj I want to find total number of files haivng nothing in feild 1 using awk will command awk -F "|" '( $1=="") {print NR}' test_awk will work??? (4 Replies)
Discussion started by: mahabunta
4 Replies

2. Shell Programming and Scripting

Appending line number to each line and getting total number of lines

Hello, I need help in appending the line number of each line to the file and also to get the total number of lines. Can somebody please help me. I have a file say: abc def ccc ddd ffff The output should be: Instance1=abc Instance2=def Instance3=ccc Instance4=ddd Instance5=ffff ... (2 Replies)
Discussion started by: chiru_h
2 Replies

3. UNIX for Dummies Questions & Answers

deleting lines by number

Is it possible to delete lines by their number? Also, I'd like to delete the last 3 rows of a file too. So from the front and back. Thanks. (9 Replies)
Discussion started by: cary530
9 Replies

4. Shell Programming and Scripting

Number lines of file and assign variable to each number

I have a file with a list of config files numbered on the lefthand side 1-300. I need to have bash read each lines number and assign it to a variable so it can be chosen by the user called by the script later. Ex. 1 some data 2 something else 3 more stuff which number do you... (1 Reply)
Discussion started by: glev2005
1 Replies

5. Shell Programming and Scripting

count the number of lines that start with the number

I have a file with contents similar to this. abcd 1234 4567 7666 jdjdjd 89289 9382 92 jksdj 9823 298 I want to write a shell script which count the number of lines that start with the number (disregard the lines starting with alphabets) (1 Reply)
Discussion started by: grajp002
1 Replies

6. Shell Programming and Scripting

Awk number of lines

How do I get the last NR of a csv file? If I use the line awk -F, '{print NR}' csvfile.csv and there are 42 lines, I get: ... 39 40 41 42 How do I extract the last number, which in this case is 42? ---------- Post updated at 11:05 AM ---------- Previous update was at 10:57 AM... (1 Reply)
Discussion started by: locoroco
1 Replies

7. Shell Programming and Scripting

Number of lines smaller than specified value

Hi All, I have a problem to find number of lines per column smaller than the values given in a different file. In example, compare the 1st column of file1 with the 1st line of the file2, 2nd column of file1 with the 2nd line of the file2, etc cat file1 0.2 0.9 0.8 0.5 ... 0.6 0.5... (9 Replies)
Discussion started by: senayasma
9 Replies

8. Shell Programming and Scripting

Grep lines for number greater than given number

Hello, I am newbie to bash scripting. Could someone help me with the following. I have log file with output as shown below **************************LOG************************* 11/20/2013 9:11:23.64 Pinging xx.xx.xx.xx with 32 bytes of data: 11/20/2013 9:11:23.64 Reply from xx.xx.xx.xx:... (4 Replies)
Discussion started by: meena_2013
4 Replies

9. Shell Programming and Scripting

Number of Lines in a file

Hi All, This is my Scenario: I wanted to check if a particular name or pattern is present in a file based of that rest of the program should proceed. I want to print '0' if no matching found. v_File_Count=`grep -i "$v_Name_Pattern" $File_Path/Master_File_List.txt | wc -l` The above command... (5 Replies)
Discussion started by: TechGyaann
5 Replies

10. UNIX for Beginners Questions & Answers

Print number of lines for files in directory, also print number of unique lines

I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with: wc -l *|sort 15263 Image.txt 16401 reference.txt 40459 richtexteditor.txt How can I also print the number of unique lines in each file? 15263 1401 Image.txt 16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
ldns(3) 						     Library Functions Manual							   ldns(3)

NAME
ldns_buffer_limit, ldns_buffer_set_limit, ldns_buffer_capacity, ldns_buffer_set_capacity, ldns_buffer_reserve, ldns_buffer_at, ldns_buf- fer_begin, ldns_buffer_end, ldns_buffer_current- SYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> size_t ldns_buffer_limit(ldns_buffer *buffer); void ldns_buffer_set_limit(ldns_buffer *buffer, size_t limit); size_t ldns_buffer_capacity(ldns_buffer *buffer); bool ldns_buffer_set_capacity(ldns_buffer *buffer, size_t capacity); bool ldns_buffer_reserve(ldns_buffer *buffer, size_t amount); uint8_t * ldns_buffer_at(const ldns_buffer *buffer, size_t at); uint8_t * ldns_buffer_begin(const ldns_buffer *buffer); uint8_t * ldns_buffer_end(ldns_buffer *buffer); uint8_t * ldns_buffer_current(ldns_buffer *buffer); DESCRIPTION
ldns_buffer_limit() returns the maximum size of the buffer param[in] buffer Returns the size ldns_buffer_set_limit() changes the buffer's limit. If the buffer's position is greater than the new limit the position is set to the limit. buffer: the buffer limit: the new limit ldns_buffer_capacity() returns the number of bytes the buffer can hold. buffer: the buffer Returns the number of bytes ldns_buffer_set_capacity() changes the buffer's capacity. The data is reallocated so any pointers to the data may become invalid. The buffer's limit is set to the buffer's new capacity. buffer: the buffer capacity: the capacity to use Returns whether this failed or succeeded ldns_buffer_reserve() ensures BUFFER can contain at least AMOUNT more bytes. The buffer's capacity is increased if necessary using buf- fer_set_capacity(). The buffer's limit is always set to the (possibly increased) capacity. buffer: the buffer amount: amount to use Returns whether this failed or succeeded ldns_buffer_at() returns a pointer to the data at the indicated position. buffer: the buffer at: position Returns the pointer to the data ldns_buffer_begin() returns a pointer to the beginning of the buffer (the data at position 0). buffer: the buffer Returns the pointer ldns_buffer_end() returns a pointer to the end of the buffer (the data at the buffer's limit). buffer: the buffer Returns the pointer ldns_buffer_current() returns a pointer to the data at the buffer's current position. buffer: the buffer Returns the pointer AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
ldns_buffer. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)
All times are GMT -4. The time now is 02:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy