04-18-2019
ex, vi, vim, elvis?
Depending on your OS and the fact that
vi started out as
ex.
W cannot help much until you let us know a little more about your system. And the limit is the size of the file, so something else is going on here if you think it is line limited.
FWIW - ex sets the limit:
For source code, start here with illumos-gate:
GitHub - illumos/illumos-gate: Community developed and maintained version of the OS/Net consolidation
/usr/src/cmd/vi/port/ex_temp.h
/usr/src/cmd/vi/port/ex_temp.c
Last edited by jim mcnamara; 04-18-2019 at 11:43 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
net::github::v2
Net::GitHub::V2(3pm) User Contributed Perl Documentation Net::GitHub::V2(3pm)
NAME
Net::GitHub::V2 - Perl Interface for github.com (V2)
SYNOPSIS
Prefer:
use Net::GitHub;
my $github = Net::GitHub->new(
version => 2, # optional, default as 2
owner => 'fayland', repo => 'perl-net-github'
);
Or:
use Net::GitHub::V2;
# for http://github.com/fayland/perl-net-github/tree/master
my $github = Net::GitHub::V2->new( owner => 'fayland', repo => 'perl-net-github' );
DESCRIPTION
NOTE: Github will terminate API v1 and API v2 on May 1st, 2012
<http://develop.github.com/>
For those (authentication required), you must set login and token (in <https://github.com/account>). If no login and token are provided,
your .gitconfig will be loaded: if the github.user and github.token keys are defined, they will be used.
my $github = Net::GitHub::V2->new(
owner => 'fayland', repo => 'perl-net-github',
login => 'fayland', token => '54b5197d7f92f52abc5c7149b313cf51', # faked
);
If you want to work with private repo, you can set always_Authorization.
To disable call rate limiting (e.g. if your account is whitelisted), set api_throttle to 0.
By default, error responses are propagated to the user as they are received from the API. By switching throw_errors on you can make the be
turned into exceptions instead, so that you don't have to check for error response after every call.
my $github = Net::GitHub::V2->new(
owner => 'fayland', repo => 'perl-net-github',
login => 'fayland', token => '54b5197d7f92f52abc5c7149b313cf51', # faked
always_Authorization => 1,
api_throttle => 0,
throw_errors => 0,
);
METHODS
repos
$github->repos->create( 'sandbox3', 'Sandbox desc', 'http://fayland.org/', 1 );
$github->repos->show();
Net::GitHub::V2::Repositories
user
my $followers = $github->user->followers();
$github->user->update( name => 'Fayland Lam' );
Net::GitHub::V2::Users
commit
my $commits = $github->commit->branch();
my $commits = $github->commit->file( 'master', 'lib/Net/GitHub.pm' );
my $co_detail = $github->commit->show( $sha1 );
Net::GitHub::V2::Commits
issue
my $issues = $github->issue->list('open');
my $issue = $github->issue->open( 'Bug title', 'Bug detail' );
$github->issue->close( $number );
Net::GitHub::V2::Issues
object
my $tree = $github->obj_tree( $tree_sha1 ); # alias object->tree
my $blob = $github->obj_blob( $tree_sha1, 'lib/Net/GitHub.pm' ); # alias object->blob
my $raw = $github->obj_raw( $sha1 ); # alias object->raw
Net::GitHub::V2::Object
network
$github->network_meta; # alias ->network->network_meta
$github->network_data_chunk( $net_hash ); # alias network->network_data_chunk
Net::GitHub::V2::Network
organization
my $organization = $github->organization->organizations('github');
my $teams = $github->organization->teams('PerlChina');
Net::GitHub::V2::Organizations
pull_request
my $pull = $github->pull_request->pull_request();
Net::GitHub::V2::PullRequest
SEE ALSO
Any::Moose
AUTHOR
Fayland Lam, "<fayland at gmail.com>"
More on Changes
COPYRIGHT & LICENSE
Copyright 2009-2011 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-30 Net::GitHub::V2(3pm)