[ < < < Home ]
[ < < Reference Start ]
[ < Reference Contents ]
[ < Previous=PDGREPPE Replace Controls ]
[ Next=PDGREPPE Replace Bytes > ]
Two kinds of references to Files can be made within a substitution pattern. One inserts a sequence of bytes that represent part or all of the current file being operated on. The other inserts an entire file into the replace pattern if it can fit. Edit Insert File Name: \F Current File name The "\F" symbol sequence replace sequence puts just a standard file name without drive or other directory path information into the pattern. pdgreppe ` -kekwkr"\F\N" .\file_id.diz ...puts the main name of the current file being edited "file_id.diz" via "\F" followed by a NewLine "\N" at the place where the match was made, at the Start of File or "`". The front end of ".\" is not inserted. Also there is: \R Current file Root name The "\R" sequence is similar but only puts the Root or Main part of the file name WITHOUT any extension, eg ".txt", into the pattern. pdgreppe ` -kekwkr"\R\N" .\file_id.diz ...puts the main ROOT name of the current file being edited "file_id" via "\R" followed by a NewLine "\N" at the same place. The front end ".\" and extension of ".diz" are not inserted. Edit Insert File: :f[<file>] insert data from <file> This, like the same operation as part of the search pattern, is a way to use an entire file's contents as part of the replacement. NO interpretation of any magic is done on the file's contents, so the insertion is a Literal interpretation. This can be good when inserting a binary or mixed binary/text sequence that could have any assortment of characters, including ones that otherwise would have been considered magic. pdgreppe ' -kekwkr"\N:fzip_crc.lis" file_id.diz ..."\N:fzip_crc.lis" inserts a DOS newline sequence "\N" followed by "f:" file ZIP_CRC.LIS at EndOfFile "'" of FILE_ID.DIZ. If the file is not found "as is" with the current path, another attempt is made to find the file with the directory given by option "-tF<d>".
[ < < < Home ]
[ < < Reference Start ]
[ < Reference Contents ]
[ < Previous=PDGREPPE Replace Controls ]
[ Next=PDGREPPE Replace Bytes > ]
© Intelligence Services 1987 - 2008
GPO Box 9, ADELAIDE SA 5001, AUSTRALIA
EMAIL : intlsvs@gmail.com