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:0when it terminates normally, and-1(which is255) if something goes wrong. π
π¦ OPTIONS π¦
-b,--beginning,--start=Nβ sets toNthe number of the first line to print. (default behavior? start with line number1, babe.) πΈ-e,--end=Nβ sets toNthe 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 toNthe increment to use when selecting the lines to print. (default increment is1.) π-F,--first-field=Nβ sets toNthe number of the first field to print. (default is to start with field number1.) π-L,--last-field=Nβ sets toNthe 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 toNthe increment to use when selecting the fields to print. (default increment is1.) β-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 fromstderrto the indicated file. π-o,--output=PATHβ redirect output fromstdoutto the indicated file. π-h,--helpβ show this help message. π«Ά-v,--versionβ show version number, Copyright, Distribution Terms and NO-Warranty. π
π COPYRIGHT π
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 π
π¦ where this page comes from
- debian bookworm: numdiff 5.9.0-1+b1 Β· GPL-3.0-or-later
- debian trixie: numdiff 5.9.0-2 Β· GPL-3.0-or-later
- nixos 26.05: numdiff 5.9.0
- nixpkgs unstable: numdiff 5.9.0
- ubuntu jammy: numdiff 5.9.0-1 Β· GPL-3.0-or-later
- ubuntu noble: numdiff 5.9.0-1 Β· GPL-3.0-or-later
- ubuntu questing: numdiff 5.9.0-2
- ubuntu resolute: numdiff 5.9.0-2build1 Β· GPL-3.0-or-later
- ubuntu stonking: numdiff 5.9.0-2build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms