FIND YOUR NEXT FEW LINES

Results for “empty”

Small, practical examples. Search by task or narrow things down below.

487 snippets foundClear filters
Linux CommandsGetting Started

Rename a practice file

Linux Commands: Rename a practice file using GNU/Linux commands in an empty practice directory.

Linux Commands✓ Tested
Bash ScriptsGetting Started

Repeat a command for several words

Bash Scripts: Repeat a command for several words with a small standalone Bash program.

Bash Scripts✓ Tested
SQL ServerWindow analytics

Repeat the first ordered value beside each row

SQL Server: FIRST_VALUE reads the first value in the current window frame.

SQL Server✓ Tested
PostgresWindow analytics

Repeat the first ordered value beside each row

Postgres: FIRST_VALUE reads the first value in the current window frame.

Postgres✓ Tested
Bash ScriptsArguments & decisions

Repeat until a condition becomes true

Bash Scripts: An until loop continues while its test returns a nonzero status.

Bash Scripts✓ Tested
SQL ServerText cleanup & matching

Replace a literal substring

SQL Server: REPLACE performs a literal replacement rather than a regular-expression substitution.

SQL Server✓ Tested
PostgresText cleanup & matching

Replace a literal substring

Postgres: REPLACE performs a literal replacement rather than a regular-expression substitution.

Postgres✓ Tested
PostgresJSON & arrays

Replace a nested JSONB value

Change one path with jsonb_set.

jsonb_set✓ Tested
Bash ScriptsFiles & reliability

Replace a text file with an atomic rename

Prepare new content beside the target before renaming it into place.

atomic write✓ Tested
PostgresWindows & text

Replace all matching text

Normalize repeated whitespace with a regular expression.

regexp_replace✓ Tested
Bash ScriptsVariables & text

Replace every occurrence in a string

Substitute text directly with Bash parameter expansion.

replace✓ Tested
SQLExpressions & aggregates

Replace NULL in a result

Choose a fallback for a missing value.

COALESCE✓ Tested