Skip to content

Instantly share code, notes, and snippets.

@ISDementyev
Last active August 25, 2021 15:10
Show Gist options
  • Save ISDementyev/e5c9fb0986ce341bdc3520cab7960a5f to your computer and use it in GitHub Desktop.
Save ISDementyev/e5c9fb0986ce341bdc3520cab7960a5f to your computer and use it in GitHub Desktop.
Creates a number of c files (see comments)
#!/bin/bash
c=".c"
for i in {1..10} ; do echo "#include <stdio.h>" > file$i$c
# the loop takes the #include statement and appends it into the first line of each file; done to avoid writing it out every time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment