script-linux/nocomment

5 lines
62 B
Bash
Executable File

#!/bin/bash
sed "s/ *\/\/.*$//g" $1 |\
sed "/\/\*/,/\*\/$/d"