Archive

Archive for March, 2013

Grep Before and after lines in unix

Syntax: Before lines (3- is the number of lines before your search text here)

grep -B3 “Your search text” your file name

Syntax: After Lines (3- is the number of lines after your search text here)

grep -A3 “Your search text” your file name

 

Advertisements
Categories: Technical, unix commands

How to remove cap in the barcode generated in unix from postscript

printf(“0 setlinecap\n”);

Print the above line to the output postscript file before generating the barcode….