Results for “new”
Small, practical examples. Search by task or narrow things down below.
Read a JSON property
Parse a JSON document and dispose it after reading in C#.
C#✓ Tested
Read a text file
Load a small text file into a C# string.
C#✓ Tested
Read null-delimited filenames into an array
Bash Scripts: A null delimiter preserves spaces and embedded newlines in filenames.
Bash Scripts✓ Tested
Read recent commit messages
View a compact history in newest-first order.
log✓ Tested
Refresh a cached data attribute deliberately
jQuery: After the first read, data caches a parsed value; removeData forces a new attribute read.
jQuery✓ Tested
Remove duplicate values
Use LINQ Distinct and OrderBy for a sorted C# result.
C#✓ Tested
Rename a file with mv
Linux Commands: Rename a known file in the current directory and inspect its new contents.
Linux Commands✓ Tested
Rename the current branch
Git: branch -m changes the local branch name without creating a new commit.
Git✓ Tested
Replace a text file with an atomic rename
Prepare new content beside the target before renaming it into place.
atomic write✓ Tested
Replace literal text
Replace every literal occurrence in a C# string.
C#✓ Tested
Replace text in a string
Replace every occurrence of a substring and keep the result in a new string. The original string is unchanged.
string✓ Tested
Select specific columns
Read only the fields a result needs.
SELECT✓ Tested