Tag: strip

  • Hacking with a binary using file and strip commands

    $file simple | awk ‘{ print $(NF-1) $(NF-0) }’ notstripped $du -h simple 8.0K simple $./simple Hello World $strip ./simple $du -h simple 8.0K simple $./simple Hello World $file simple | awk ‘{ print $(NF-1) $(NF-0) }’ BuildID[sha1]=6cf0bed752a904372cd42a85bc560c266a7c91b3,stripped $

  • detex for tex.

    detex – a filter to strip TeX commands from a .tex file. $cat resume.tex \documentclass[10pt,a4paper,twocolumn]{article} \date{} \usepackage{amsmath} \setlength\topmargin{0in} \setlength\headheight{0in} \setlength\headsep{0in} \setlength\oddsidemargin{0in} \setlength\evensidemargin{0in} \begin{document} \title {\texttt{R\'{e}sum\'{e}}} \maketitle \section*{\texttt{IDEA}} \texttt{Work for student community} \\ output after detex resume.tex | more [10pt,a4paper,twocolumn]article amsmath 0in 0in 0in 0in 0in Resume *IDEA Work for student community to help acquire knowledge. […]