Code: Select all
\documentclass[a4paper,finnish]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\begin{document}
\subsection*{Nice things}
Sometihing very wise and beautiful things in here.
\end{document}
Code: Select all
\subsection*{Nice things}
Sometihing very wise and beautiful things in here.
Code: Select all
sed -n '/\\subsection/,$p' "$file" | sed '$d' >> other.tex