Guest User

Untitled

a guest
Jan 14th, 2021
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. #!/bin/bash
  2. cd a
  3. for arg do
  4. cp t.cpp $arg.cpp
  5. geany $arg.cpp -l 22 & disown
  6. done
  7.  
  8. #how it works:
  9. #- this is a simple, but very useful, bash script I wrote that
  10. #- can be used to quickly load up files from a template with a specific name
  11. #- If you don't use geany as your editor, or don't use c++ as your language, simply replace the
  12. #- corresponding words with your file extension and/or IDE
  13. #- "cd a" is just there to change the directory to that of the template
Advertisement
Add Comment
Please, Sign In to add comment