Name

next

Synopsis

n[!] [[+num] filelist]

Edit the next file from the command-line argument list. Use args to list these files. If filelist is provided, replace the current argument list with filelist and begin editing on the first file. With the + num argument, begin editing on line num. Or num may be a pattern, of the form / pattern.

Example

:n chap*            Start editing all "chapter" files

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.