First a a shell script.
The command uses :
1. "a header"
2. "a footer"
3. "a link to a file".
Running the script sends the header , the file content , the footer to the llm , and spits out a file ./out.txt i.e. the result of the request , which in this case, contains the .c file corrected.
The source code:
https://gitlab.com/alaindevos/scalatut/-/blob/master/myask/src/main/scala/Main.scala?ref_type=heads
The command uses :
1. "a header"
2. "a footer"
3. "a link to a file".
Code:
#!/bin/sh
truncate -s 0 ./out.txt
sbt "compile"
sbt run " Below_is_a_C_file Check_this_file_on_errors_and_correct_it ./helloworld.c "
Running the script sends the header , the file content , the footer to the llm , and spits out a file ./out.txt i.e. the result of the request , which in this case, contains the .c file corrected.
The source code:
https://gitlab.com/alaindevos/scalatut/-/blob/master/myask/src/main/scala/Main.scala?ref_type=heads