Name
v
Synopsis
[address1
[,address2
]]v [version
]{G}
This command doesn’t do anything. You use it to require GNU sed for your script. This works, because non-GNU versions of sed don’t implement the command at all, and will therefore fail. If you supply a specific version, GNU sed fails if the required version is newer than the one executing the script.
Get Linux in a Nutshell, 6th 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.