Stream Editor - Pattern Range


A pattern range can be a simple text or a complex regular expression.
NOTE:-We can use the character of dollar ($) to print all the lines after finding the first occurrence of the pattern.

\\The following example will help us to print the all the books of the author Paulo Coelho.
$ sed -n '/Paulo/ p' lfc.txt
4) The Alchemist, Paulo Coelho 
----------------------------------------------
----------------------------------------------
\\The following example prints lines starting with the first match of Alchemist until the fourth line.
$ sed -n '/Prince/, 4 p' books.txt
3) The Little Prince ,  Antoine de Saint
4) The Alchemist, Paulo Coelho 
---------------------------------------------
---------------------------------------------
\\The following example finds the first occurrence of the pattern The and immediately prints the remaining lines from the file
1) The Shadow of the Wind,  Carlos Ruiz Zafón
2) One Hundred Years of Solitude,  Gabriel García Márquez 
3) The Little Prince ,  Antoine de Saint
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+541-541-1=0+0+0+1 --

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

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

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

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

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

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

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

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

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

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

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

pHqghUme
-1' OR 2+352-352-1=0+0+0+1 or '9xQqhOKr'='

pHqghUme
-1' OR 3+352-352-1=0+0+0+1 or '9xQqhOKr'='

pHqghUme
-1' OR 3*2<(0+5+352-352) or '9xQqhOKr'='

pHqghUme
-1' OR 3*2>(0+5+352-352) or '9xQqhOKr'='

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

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

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

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

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
rARg5DF3'; waitfor delay '0:0:15' --

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

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

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

pHqghUme
yeyQqHhH' OR 473=(SELECT 473 FROM PG_SLEEP(15))--

pHqghUme
vhNCULUI') OR 24=(SELECT 24 FROM PG_SLEEP(15))--

pHqghUme
lHxhzJGV')) OR 965=(SELECT 965 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
@@ss1EN

pHqghUme
555

pHqghUme
555

pHqghUme
555