Expand

continue

inside for loop body, stop the current iteration of loop and continue to the next one.

process all non empty lines
cat file.txt | for $line {
    if $line == "" {
        continue
    }
    print $line
    # process line here
}

See Also