This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
Files=(`grep -r "\.sgk" ./ | cut -d: -f1 | uniq`) | |
for file in "${Files[@]}" | |
do | |
echo "Filename: $file" | |
grep "\.sgk" "$file" | more | |
done | |
echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
num = 0 | |
for file in $(find ./* -name '*.sgk' | grep -n 'sgk$') | |
do | |
(( num++ )) | |
echo "$file" | |
done | |
echo -e '\n' "Searched $num files.\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int | |
main (int argc, | |
char* argv[]) | |
{ | |
int num; | |
if (argc >= 1) | |
num = argc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Take arguments and output whether it contains hyphen or not. */ | |
#include <stdio.h> | |
int | |
main (int argc, | |
char* argv[]) | |
{ | |
int num; | |
if (argc >= 1) | |
num = argc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int | |
main (int argc, | |
char* argv[]) | |
{ | |
int num; | |
if (argc >= 1) | |
num = argc; |