FIND YOUR NEXT FEW LINES

Results for “Bash Scripts”

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

379 snippets foundClear filters
Linux CommandsStreams & byte tools

Read a byte suffix

Linux Commands: Use GNU tail -c to extract a fixed-size ending.

Linux Commands✓ Tested
GitCommit history & revision selection

Read a complete commit message

Git: The B placeholder includes the subject and body without extra metadata.

Git✓ Tested
GitCommits & history

Read a file from a commit

Inspect committed content without changing your working copy.

show✓ Tested
GitGetting Started

Read a file from the latest commit

Git: Read a file from the latest commit inside the disposable repository created by the input setup.

Git✓ Tested
GitCommit history & revision selection

Read a file from the parent commit

Git: HEAD~1 names the first parent one generation before HEAD.

Git✓ Tested
GitTags & repository configuration

Read a repository-specific configuration value

Git: The local scope makes configuration lookup predictable for this practice repository.

Git✓ Tested
GitTags & repository configuration

Read an annotated tag’s message

Git: for-each-ref can inspect annotation contents without including a commit diff.

Git✓ Tested
Linux CommandsDates & process utilities

Read an ISO week date

Linux Commands: Use ISO week year, week number, and weekday directives together.

Linux Commands✓ Tested
GitCommit history & revision selection

Read commit subjects affecting one file

Git: Place the path after -- so Git limits history to the selected file.

Git✓ Tested
GitCommit history & revision selection

Read commit subjects from oldest to newest

Git: Reverse the normal newest-first history order.

Git✓ Tested
Linux CommandsArchive integrity & packaging

Read concatenated gzip members

Linux Commands: GNU gzip decompresses concatenated gzip members in order.

Linux Commands✓ Tested
GitGetting Started

Read history for one path

Git: Read history for one path inside the disposable repository created by the input setup.

Git✓ Tested