Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[COLOR=darkgoldenrod]mkseqname()[/color]
{
[COLOR=chocolate]local[/color] [navy]name[/navy][teal]=[/teal][green][i]"$1"[/i][/green] [navy]nr[/navy][teal]=[/teal][purple]1[/purple]
[b]while[/b] [teal][[[/teal] -f [green][i]"${name}_$nr"[/i][/green] [teal]]];[/teal] [b]do[/b] [teal](([/teal] nr[teal]++[/teal] [teal]));[/teal] [b]done[/b]
echo [green][i]"${name}_$nr"[/i][/green]
}
mv [green][i]'XXX'[/i][/green] [green][i]"$( mkseqname 'XXX' )"[/i][/green]
[COLOR=darkgoldenrod]mkseqname()[/color]
{
[COLOR=chocolate]local[/color] [navy]name[/navy][teal]=[/teal][green][i]"${1%.*}"[/i][/green]
[COLOR=chocolate]local[/color] [navy]ext[/navy][teal]=[/teal][green][i]"${1:${#name}}"[/i][/green] [navy]nr[/navy][teal]=[/teal][purple]1[/purple]
[b]while[/b] [teal][[[/teal] -f [green][i]"${name}_$nr$ext"[/i][/green] [teal]]];[/teal] [b]do[/b] [teal](([/teal][navy]nr[/navy][teal]=[/teal]nr[teal]+[/teal][purple]1[/purple][teal]));[/teal] [b]done[/b]
echo [green][i]"${name}_$nr$ext"[/i][/green]
}