Skip to content

Instantly share code, notes, and snippets.

@quickgrid
Created August 24, 2016 23:03
Show Gist options
  • Save quickgrid/bc36ab1851d41519a671203ff1520d27 to your computer and use it in GitHub Desktop.
Save quickgrid/bc36ab1851d41519a671203ff1520d27 to your computer and use it in GitHub Desktop.
sample bash script file to run the flex code.
#!/bin/bash
flex -t assignment2.l > test.c
g++ -c -o test.o test.c
g++ -o samp test.o -ll
./samp
#./samp < in.txt > out.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment