š» Software
How to get Bash shell history range
Fresh6 days ago
Mar 15, 202611098 viewsConfidence Score0%
0%
Problem
How can I get/filter history entries in a specific range? I have a large history file and frequently use Now, my memory is pretty bad and I also want to see what else I did around the time I entered the command. For now I do this: get match, say , then I do this is usually good enough, but I would ā¦
Error Output
history | grep 49[0-9][0-9]
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix ā Awaiting Verification
Fix for: How to get Bash shell history range
Low Risk
You can tell to print some lines surrounding the match, e.g., 3 before and 5 after: is equivalent to . But often you won't know precisely how many lines you want in advance. So use less and search inside it. You can even launch the search from the cā¦
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix