
Unix tool tip
@UnixToolTip
Tips on Unix utilities and related topics from @JohnDCook.
قد يعجبك
'The enjoyment of one's tools is an essential ingredient of successful work.' -- Donald E. Knuth
We should create some form of distributed version control system so this can’t happen
When giving numeric arguments to the find utility, + means greater than and - means less than. e.g. +7 means greater than 7.
In Emacs, to send the contents of a region to a shell command, use M-|.
"no Shakespeare yet -- only syntactically correct Bash scripts"

Legend has it gym memberships are particularly hard to cancel here because nobody knows how to exit

'With only s and d you should probably find a use for sed once a week.' -- @WilsonEricN
Replace string in a huge (70GB), one line, text file unix.stackexchange.com/questions/4136…
Trim leading and trailing whitespace: sed -i 's/^[ \t]*//;s/[ \t]*$//' somefile
Example from my latest blog post: sample a file with replacement, choosing 12 items: shuf -n 12 -r file.txt
Boolean operators in find: -not, -or. There's no 'and' because 'and' is implicit when two requirements are listed.
Seven habits of effective text editing moolenaar.net/habits.html // general principles, examples with Vim
Can show all environment variables with printenv. Probably want to pipe to less.
Repeat a shell command, replacing all instances of a word with something new johndcook.com/blog/2022/10/2…
Trim leading whitespace: sed -i 's/^[ \t]*//' somefile
'A successful software tool is one that was used to do something undreamed of by its author.' -- Stephen Johnson
Limit find's depth of search with the -maxdepth option.
United States الاتجاهات
- 1. #2025MAMAVOTE 1.39M posts
- 2. #KonamiWorldSeriesSweepstakes N/A
- 3. Tyla 15.7K posts
- 4. Fetterman 67.6K posts
- 5. No Kings 149K posts
- 6. Deport Harry Sisson 25.3K posts
- 7. Somalia 30.3K posts
- 8. Miguel Vick N/A
- 9. #SpiritDay 1,332 posts
- 10. GTreasury 3,981 posts
- 11. Andrade 6,577 posts
- 12. Dave Dombrowski N/A
- 13. #thursdayvibes 3,746 posts
- 14. Yung Miami N/A
- 15. Ninja Gaiden 25.4K posts
- 16. Mila 17.6K posts
- 17. #WorldFoodDay 36.4K posts
- 18. Starting 5 7,720 posts
- 19. Itagaki 29.9K posts
- 20. Kevin Long N/A
قد يعجبك
-
Computer Science
@CompSciFact -
Regular Expression
@RegexTip -
Probability Fact
@ProbFact -
Algebra Etc.
@AlgebraFact -
Data Science Fact
@DataSciFact -
Scientific Python
@SciPyTip -
Analysis Fact
@AnalysisFact -
Ubuntu
@ubuntu -
The Linux Foundation
@linuxfoundation -
nixCraft 🐧
@nixcraft -
Differential Eqns
@diff_eq -
Topology Fact
@TopologyFact -
Logic & Applications
@LogicPractice -
Red Hat
@RedHat -
Docker
@Docker
Something went wrong.
Something went wrong.