FIND YOUR NEXT FEW LINES

Results for “Bash Scripts”

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

379 snippets foundClear filters
GitStashing selected work

Inspect which files a stash changes

Git: stash show can report just filenames before applying anything.

Git✓ Tested
Linux CommandsTransforming text

Join lines from two files side by side

Linux Commands: Use paste to pair lines by position with a chosen separator.

Linux Commands✓ Tested
Linux CommandsSorting & joining records

Join two sorted files by a shared key

Linux Commands: Use join for sorted, simple delimiter-separated records with one row per key.

Linux Commands✓ Tested
Linux CommandsGetting Started

Keep spaces inside one argument

Linux Commands: Keep spaces inside one argument using GNU/Linux commands in an empty practice directory.

Linux Commands✓ Tested
GitGetting Started

Label the current commit with a tag

Git: Label the current commit with a tag inside the disposable repository created by the input setup.

Git✓ Tested
Linux CommandsFinding & selecting files

Limit a search to the immediate directory

Linux Commands: Use maxdepth with type f to exclude nested files and directories.

Linux Commands✓ Tested
GitCommit history & revision selection

List all files stored in a commit

Git: ls-tree inspects the committed tree without relying on working files.

Git✓ Tested
GitBranches & ancestry

List branches already merged into the current branch

Git: The merged filter reports branches whose tips are reachable from HEAD.

Git✓ Tested
GitWorking tree & staging

List changed files without the full diff

Inspect affected paths before staging.

diff✓ Tested
GitCommit history & revision selection

List files changed by the current commit

Git: diff-tree exposes the paths changed between a commit and its parent.

Git✓ Tested
Linux CommandsSearching text

List files containing a match

Linux Commands: Use grep -l when only the matching filenames are needed.

Linux Commands✓ Tested
Linux CommandsArchives & checksums

List files in a tar archive

Inspect the contents of a gzip-compressed tar archive without extracting any files.

tar✓ Tested