Common Examples of Using gsed on FreeBSD
gsed [-nefir] [action] Options and parameters: -n : Use silent mode. In general gsed usage, all data from STDIN will generally be listed on the screen. But if the -n parameter is added, only the line (or action) that has been specially processed by gsed will be listed . -e command : Edit gsed actions directly in the command line mode. -f command_file : Write the gsed action directly in a file, -f command_file can execute the gsed action in command_file . -i : Modify the content of the read file directly instead of outputting it on the screen. -r : The action of gsed supports the grammar of extended formal expressions. (The default is basic regular expressions grammar) . Action description: [n1[,n2]]function n1, n2 : It doesn’t necessarily exist. It generally means "choose the number of lines to perform an action". For example, if my action needs to be performed between 10 and 20 lines, then "10,20[action behavior]". ...