From fe3e5495fde669fd4465c36930fdc4f72c49d3b2 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Fri, 15 Apr 2016 11:44:36 -0400 Subject: [PATCH] List exercises better-er --- lcthw-remnants-2/list-exercises | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lcthw-remnants-2/list-exercises b/lcthw-remnants-2/list-exercises index 52f7d9a..230d80b 100755 --- a/lcthw-remnants-2/list-exercises +++ b/lcthw-remnants-2/list-exercises @@ -1,5 +1,3 @@ #!/usr/bin/env bash -for f in ex*.c ; do - echo "${f/.c/}" -done +grep -lE '^int main' *.c | sed 's/\.c//'