Skip to content

Instantly share code, notes, and snippets.

@MachinesAreUs
Created August 17, 2012 21:29
Show Gist options
  • Save MachinesAreUs/3382902 to your computer and use it in GitHub Desktop.
Save MachinesAreUs/3382902 to your computer and use it in GitHub Desktop.
Obtiene la lista de métodos de interfaces (C#)
for f in `ls -d *faces`; do ls $f/*.cs ; done > interfaces_servicios.txt
while read line; do
grep -e '.*(.*);' $line | sed -e 's/^ *//g' -e 's/;//g'|
awk -v file=$line '{
idxMethod=index($0," ")+1;
idxArgs=index($0,"(");
print file"|"$1"|"substr($0,idxMethod,idxArgs-idxMethod)"|"substr($0,idxArgs)
}'; done < interfaces_servicios.txt > servicios_medtzin.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment