NDSELECT(1)

🌸 NDSELECT(1) β€” the ndselect page, bestie edition 🌸

okay so real quick, the manual name is ndselect and it lives in the User Commands section of the manual (that's section 1, iykyk). it's giving "tiny tool, big slay" and honestly? we're obsessed. πŸ’–


✨ NAME ✨

ndselect β€” pick out lines and fields, for numdiff πŸŽ€


πŸ’… DESCRIPTION πŸ’…

so the vibe here is, you run it like this:

ndselect -h|--help|-v|--version

orrr, the full main-character version:

ndselect [-b N][-e N][-s N][-F N][-L N][-I N][-S IFS][-D DELIMS][-O OSEP][-x][-l PATH][-o PATH] [FILE]

what it does: prints a subset of lines and fields from a given file straight to standard output. no cap. ✨

the argument after the options is the name of the file to read from. and listen β€” you gotta give the complete path of the file. a directory name is not accepted, periodt. 🚫 if you don't specify an input file at all, the program just reads from standard input. easy.

exit status: 0 when it terminates normally, and -1 (which is 255) if something goes wrong. πŸ’€

πŸ¦‹ OPTIONS πŸ¦‹

  • -b, --beginning, --start=N β€” sets to N the number of the first line to print. (default behavior? start with line number 1, babe.) 🌸
  • -e, --end=N β€” sets to N the number of the last line that can be printed. (default is to go all the way till the end of the file, so ride it out to the finish line.) ✨
  • -s, --step=N β€” sets to N the increment to use when selecting the lines to print. (default increment is 1.) πŸ’…
  • -F, --first-field=N β€” sets to N the number of the first field to print. (default is to start with field number 1.) πŸŽ€
  • -L, --last-field=N β€” sets to N the number of the last field that can be printed. (default is to arrive till the end of every line, every single one.) 🌈
  • -I, --increment=N β€” sets to N the increment to use when selecting the fields to print. (default increment is 1.) ⭐
  • -S, --separators=IFS β€” specify the set of characters to use as delimiters while splitting the input lines into fields. (the default set of delimiters is space, tab and newline.) 🧚
  • -D, --delimiters=DELIMS β€” specify the set of strings to use as delimiters while splitting the input lines into fields. (the default set of delimiters is space, tab and newline.) πŸ”₯
  • -O, --output-separator=OSEP β€” specify the string to use as separator while writing the selected fields to the standard output. (the default behavior consists in reusing the delimiters found in the input lines.) πŸ’œ
  • -x, --omit-empty-lines β€” do not print empty lines. simple as that. πŸ™ˆ
  • -l, --warnings-to=PATH β€” redirect warning and error messages from stderr to the indicated file. πŸ“
  • -o, --output=PATH β€” redirect output from stdout to the indicated file. πŸ’–
  • -h, --help β€” show this help message. 🫢
  • -v, --version β€” show version number, Copyright, Distribution Terms and NO-Warranty. πŸ‘‘

Copyright Β© 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Ivano Primi <ivprimi@libero.it> License GPLv3+: GNU GPL version 3 or later, see <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


πŸ” SEE ALSO πŸ”

the full documentation for ndselect is maintained as a Texinfo manual. if the info and ndselect programs are properly installed at your site, the command

info numdiff

should give you access to the complete manual. ✨


and that's the whole page, bestie!! this one's ndselect 5.9.0, dated January 2017, from the NDSELECT(1) era of the User Commands section. go forth and select some lines, you absolute icon. mwah πŸ’‹