Skip to content
users_absent.sh 370 B
Newer Older
#!/bin/bash

NUM=1000
FILE="users_absent.json"

echo "  \"users\": [" >> "$FILE"
for i in $(seq 1 "$NUM"); do
    echo "    {" >> "$FILE"
    echo "      \"name\": \"user$i\"," >> "$FILE"
    if [ "$i" -lt "$NUM" ]; then
       echo "    }," >> "$FILE"