FIND YOUR NEXT FEW LINES
Results for “shell”
Small, practical examples. Search by task or narrow things down below.
150 snippets foundClear filters
Set an image’s default command
Use JSON array syntax for a predictable command.
Dockerfile✓ Tested
Set service environment values
Pass configuration through the Compose environment section.
Compose✓ Tested
Sort and deduplicate values
Produce an ordered list without duplicates.
Sort-Object✓ Tested
Sum a collection
Calculate a total with Measure-Object.
Measure-Object✓ Tested
Transform each item in a collection
Build a result array with a foreach expression.
foreach✓ Tested
Write UTF-8 text to a file
Save a string without adding an extra newline.
Set-Content✓ Tested