Ubuntu Pastebin

Paste from rty at Thu, 9 Nov 2017 13:31:58 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/bin/bash

INC=1
TAG=$(date +"v2.%y.%m.%d.$INC")

while [ -f $TAG ]; do
  ((INC++))
done

echo "$TAG is available";
Download as text