mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-05 16:02:48 +00:00
14 lines
231 B
Awk
14 lines
231 B
Awk
{
|
|
if (index($0, "to-check=") > 0)
|
|
{
|
|
split($0, pieces, "to-check=")
|
|
split(pieces[2], term, ")");
|
|
split(term[1], division, "/");
|
|
print (1-(division[1]/division[2]))*100"%"
|
|
}
|
|
else
|
|
{
|
|
print "#"$0;
|
|
}
|
|
fflush();
|
|
} |