Advertisement
AnthonyCagliano

Untitled

Jul 25th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # Function to process files
  2. process_file() {
  3. local file=$1
  4. echo "Processing file: $file"
  5. local prefix=$(basename $file .h)
  6. diff -u <(
  7. grep -E "eth_|$prefix\_" "$output_file" | tr -d , | awk '{ print $1; }' | sort
  8. ) <(
  9. /usr/local/bin/ctags -f- --kinds-C=p $file | awk '{ print $1; }'
  10. ) | grep '^+' | grep -v '^+++' | sed 's/^+//' >> "$output_file"
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement