Difference between revisions of "Unix Commands"
From Steak Wiki
Jump to navigationJump to search (Created page with "some years of gnulinux, commands i have found easy to understand, yet still useful find . -print | grep <somefile> find . -printf '$TY-%Tm-%Td %p\n' | grep 2020-12-29 sta...") |
|||
Line 6: | Line 6: | ||
stat /files/* | grep -A5 <somenameoffile> | awk 'xor(/File/,/Modify/)' > /tmp/dates | stat /files/* | grep -A5 <somenameoffile> | awk 'xor(/File/,/Modify/)' > /tmp/dates | ||
sed -e 's/original/new/g' -i editfileinplace.txt | sed -e 's/original/new/g' -i editfileinplace.txt | ||
+ | grep 'one|two|three' -search multiple items (may want to add -i to ignore case) | ||
edit .bashrc | edit .bashrc | ||
Line 11: | Line 12: | ||
WIP | WIP | ||
+ | |||
+ | Resources: Unix Power Tools 1993 |
Revision as of 06:20, 11 January 2021
some years of gnulinux, commands i have found easy to understand, yet still useful
find . -print | grep <somefile> find . -printf '$TY-%Tm-%Td %p\n' | grep 2020-12-29 stat /files/* | grep -A5 <somenameoffile> | awk 'xor(/File/,/Modify/)' > /tmp/dates sed -e 's/original/new/g' -i editfileinplace.txt grep 'one|two|three' -search multiple items (may want to add -i to ignore case)
edit .bashrc
alias hs="history"
WIP
Resources: Unix Power Tools 1993