- sed
$ sed -n '0~4p' somefile line 4 line 8 $
0~4 means select every 4th line, beginning at line 0.
Line 0 has nothing, so the first printed line is line 4.
-n means only explicitly printed lines are included in output.
Saturday, October 25, 2014
Wednesday, October 15, 2014
Tuesday, October 7, 2014
show all hidden files in mac os
- Open Terminal found in Finder > Applications > Utilities
- In Terminal, paste the following:
defaults write com.apple.finder AppleShowAllFiles YES - Press return
- Hold ‘alt’ on your keyboard, then right click on the Finder icon in the dock and click Relaunch.
defaults write com.apple.finder AppleShowAllFiles NO
Subscribe to:
Comments (Atom)