New Scripts
1 Replace all but the first and the last PAT of a line.. 2008.05.03
2 Replace all but the last PAT of a line.. 2008.05.02
Nth Occurrence of PAT in a file.
1 Replace the FIRST occurrence of PAT1 in a file with PAT2. 2000.09.30
2 Replace the LAST occurrence of PAT1 in a file with PAT2. 2000.10.03
3 Replace all occurrences of PAT in a file alternately with OBJ1 and OBJ2. 2001.02.16
Some Occurrences of PAT in a line.
1 Replace every space character with an underscore in the first 8 characters of a line (string). 2000.11.17
2 Replace every comma located between columns 10 thru 15 with a '#'. 2002.10.11
3 Replace every third comma in a string with a newline. 2001.01.15
4 Replace every 'B' in 1-byte-units with 'C', but retain those in 2-byte-units. 2001.09.26
5 Replace every leading space of a line with a dot('.'). 2003.11.16
6 Replace every 8-digit integer not preceded by 'abc' with 'ABCDEFGH'. 2003.11.20
7 Convert 'IP.port' to 'IP:port' in a file. 2004.02.09
8 Replace all but the last PAT of a line. 2008.05.02
9 Replace all but the first and the last PAT of a line. 2008.05.03
Occurrences of PAT (not) escaped or inside quotes.
1 Replace every space character of every double-quoted string in a line with a dash('-'). 2000.11.15
2 Replace every comma(',') in a double-quoted string with a dash('-'). 2001.11.14
3 Replace every comma NOT enclosed in a pair of double quotes with '|'. 2001.02.28
4 Replace every non-escaped '@' with '#'. 2005.07.20
5 Replace every comma neither escaped nor enclosed in a pair of double quotes with '#'. 2005.07.27
Number-Related.
1 Multiply every number of a file with 2. 2001.12.17
2 Increase a non-negative integer by 1. 2004.05.03
Misc.
1 Convert a sequence of one-byte codes into their corresponding actions. 2003.11.28
2 Replace every matched string with a sequence of dashes of the same length. 2008.01.17
3 Replace keys with associated values. 2008.02.22
4 Remove the directory part of every path. 2008.04.10
Main Menu