#!/bin/bash

awk '/^$/ {print NR}' ./nowcoder.txt

/^$/ 代表空行

NR 行号