Search Results

Search: Posts Made By: lohan
2,066
Posted By lohan
#!/bin/bash grep -e "printf" -e "fprintf" *.c; ...
#!/bin/bash
grep -e "printf" -e "fprintf" *.c;
if[ $? = "0" ]; then
grep -e "#include <stdio.h>";
if [ $? = "0" ];then
sed 'li\#include <stdio.h>' < *.c > temp;
...
2,066
Posted By lohan
how do i add #include <stdio.h> to the file by...
how do i add #include <stdio.h> to the file by using sed ?
do i use sed to add this line to the screen and send the output to a file ,then move the file to the .c file? plz help
2,066
Posted By lohan
script help plz
Hi, im trying to make a script which will look up every .c file in the current directory for the strings printf or fprintf. if found, the script adds the statement #include <stdio.h> at the beginning...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy