I've opted to use instead of ] because the latter is an extended regular expression, which is a non-standard GNU extension, and the -r option makes your command less portable. \1 is a backreference referring to the first and only captured group. The parentheses capture everything except the trailing dot. *\.$ should match the last column ("all non-space characters followed by a dot at the end of the line"). If you just want to extract the last column without validation, and suppressing the trailing dot, you could just write instead: sed -e 's/.*\(*\)\.$/\1/' test To match a dot character, you would write \. Watch My Domains SED features a number of display groups that allow you to view the whole domain related data easily and quickly. means "match any character" it does not mean "match a dot character". The regex for the first column probably doesn't work the way you expect. It looks like you are attempting to craft the first regex to validate each column, checking that the first column looks like a domain ending with a dot ( ]*.]*.?*.), the second column looks like an integer ( +), the third column is IN, and the fourth columns is a record type ( +). Then you can write the command this way, as just one command instead of a pipeline: sed -r -e 's/^]*.]*.?*.]++]+IN]++]+//g' \ It would be better practice to always explicitly put a -e in front of the script. This doesn't include any of the application files. This is a set of simple docker files that will allow you to spin up a test container in your Windows or Mac desktop. Your two sed commands each has one non-option argument, which gets treated as the script. Watch My Domains SED is a cloud based domain name portfolio management application currently available at DomainPunch.Com. Watch My Domains SED runs on a server and all you need is a web-browser on a PC, Tablet or Smart Phone to access it from anywhere as long as the access is allowed from that location. If no -e, -f, -expression, or -file options are given on the command-line, then the first non-option argument on the command line is taken to be the script to be executed. High-Referring Domain Links New More Powerful Link Options Leverage Links With 100S And 1000S Of Referring Domains Take Me to The Curated Links Stronger.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |