First commit

This commit is contained in:
Héctor Molinero Fernández
2019-06-16 11:17:51 +02:00
commit 97f710716f
18 changed files with 1129 additions and 0 deletions

12
scripts/bin/export-env Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/awk -f
BEGIN {
for (v in ENVIRON) {
if (v !~ /^(HOME|PWD|SHELL|USER|GROUP|UID|GID)$/) {
gsub(/[^0-9A-Za-z]/, "_", v)
gsub(/\n/, " ", ENVIRON[v])
gsub(/'/, "'\\''", ENVIRON[v])
print "export '"v"="ENVIRON[v]"'"
}
}
}