#include <stdlib.h> #include <stdio.h>int main () { file *in; file *out; char c; int count=0; puts (" Please ues in.txt ") in= fopen (" In.txt ", " R "); out = fopen ("OUT.txt", "W"); while ((C = fgetc (in)) != eof) { if (c== ' {') {count++; if (count==1) FPUTC (c,out); } if (c== '} ') count--; if (count<1) &NBSP;FPUTC (c,out); if (count>1) fputc (' ', out); } Fclose (in), fclose (out); return 0;} For more tests not beautiful no go blank line does not form a fixed fun () { } form
count=0;
While [$C-le 100];
Do touch ' wz$count ' done
LS TEST?
LS test*
LS Test[2-5]
LS test[2-100] Only test0//error
LS test[0-9]9 test9 test19 test29
Date +%y-%m-%d%h-%m-%s
mytime=$ (date +%y-%m-%d%h-%m-%s)
Mytime= ' Date +%y-%m-%d%h-%m-%s '
Echo MyTime
Int=123
echo $int + $int #123 +123
echo $ (int+int) #246
echo $ ($int + $int) #246
((Data=int+int))
echo Data #246
Touch $ $
Touch $\ $
Touch \$\ \$
Touch-file
Touch \-file
Touch./-file
Rm-f./-file
Touch---File
RM---File
' and ' "
gg=100
echo "\% \ \" $gg ' ls ' to perform command numeric conversions
echo ' \% \ ' $gg ' ls ' no change output no explanation
Run (./sh #!bin/bash cmd +x)
Fahell->fork ()->cshell->exec (bash)->read shell
Local variables
Environment variables
Internal Instruction CD
General Instructions
Condition test
Test $v-GT 9
echo $?
[$v-GT 9]
Code function name extraction and shell review