Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ned

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ned

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Ned

Ned, a stream editor.

Usage: ned [[ned_arg ...] --] [[command] [: command ...]]

OPTIONS
    -i, --inplace                    Edit each file in place by processing each file independently.
    -s, --separate                   Process input files one at a time rather than as one stream.
    -h, --help [COMMAND]             Print this help.
    -v, --version                    Print Ned version.

COMMANDS

append (a)

  Append the specified string to each input line.
  
  Usage: ned append STRING

backward (b)

  Reverse input lines.
  
  Usage: ned backward

cut (c)

  Print selected portions of each line.
  
  Usage: ned cut [--delimiter STRING | --pattern PATTERN] [--join STRING] --field (START|START..END) ...
  
  Options:
      -d, --delimiter STRING           Separate input fields by the specified string. Defaults to space.
      -p, --pattern PATTERN            Separate input fields by the specified pattern instead of a delimiter.
      -j, --join STRING                Join output fields with the specified string. Defaults to space.
      -f, --field INDEX_OR_RANGE       Include the specified index or range in the output.

eval (e)

  Evaluate the specified ruby string.
  
  Usage: ned eval STRING
  
  Variables:
    l: the current line or lines
    i: the current index (zero-based)

grep (g)

  Print lines matching the specified pattern.
  
  Usage: ned grep [--only] PATTERN
  
  Options:
      -o, --only                       Only print the matching portion of each line.
      -v, --invert                     Print lines not matching the specified pattern.

head (h)

  Print only the first input lines.
  
  Usage: ned head [NUM]

index (i)

  Print only the lines indicated by the specified indices and ranges.
  
  Usage: ned index INDEX_OR_RANGE ...

join (j)

  Join input lines, optionally with the specified delimiter.
  
  Usage: ned join [STRING]

prepend (p)

  Prepend the specified string to each input line.
  
  Usage: ned prepend STRING

quote (q)

  Wrap each input line in quotes, or the specified string.
  
  Usage: ned quote [STRING]

sort (s)

  Sort input lines.
  
  Usage: ned sort [--numeric]
  
  Options:
      -n, --numeric                    Sort numerically.
      -r, --reverse                    Reverse the sort order.

tail (t)

  Print only the last input lines.
  
  Usage: ned tail [NUM]

uniq (u)

  Filter out repeated input lines.
  
  Usage: ned uniq [--count]
  
  Options:
      -c, --count                      Precede each output line with the number of times the line occurred in the input, followed by a space.

Installation

gem install ned

FAQs

Package last updated on 09 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc