view bin/runcpp @ 8259:e95716889267

<shachaf> sled bin/sled//s#\\|\\| exit 1#|| { echo \'no such file\'; exit 1; }#
author HackBot
date Wed, 01 Jun 2016 06:35:19 +0000
parents 7f957c1f4661
children
line wrap: on
line source

#!/bin/bash
sed s:\\n:\n:g >/tmp/in.cpp <<<"$@"; g++ -o /tmp/a.out /tmp/in.cpp; /tmp/a.out