File: dehs-to-shell.awk

package info (click to toggle)
libwebsockets 4.1.6-3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 25,204 kB
  • sloc: ansic: 150,650; javascript: 1,694; sh: 1,267; java: 461; perl: 405; cpp: 217; xml: 118; makefile: 79; awk: 5
file content (7 lines) | stat: -rw-r--r-- 98 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
#!/usr/bin/awk -f

$4 ~ /^\// {
	gsub(/-/, "_", $2);
	gsub(/'/, "_", $3);
	print $2 "='" $3 "'"
}