#unix
7 posts tagged unix. Clear filter
-
How to Time Piped *nix Commands
If you want to time how long a piped bash command take, use the time command followed by your commands in parens like so.. time (ls -lha | wc -l)
-
Find a File On Your File System with the Unix Find Command By Extension
find path/ -name .txt
-
How to Create A Unix Timestamp or the Epoch in Python
It's a little convoluted. Seeing as it's a pretty common thing you use when programming computers one might think that there would be a quick and easy method for it. But from what I can tell there...
-
How to Split a Large File Into Smaller Files on OSX or Unix
Use the split command. You can set the number of lines (the "-l" flag) to split on and also the location of where the split files should be saved. Note, the output directory must already exists.
-
Using Grep To Find or Match All Links in an HTML Document
You can further reduce to just return the images by piping again. The -r flag is for a recursive directory scan.
-
Recursively Search Contents of a File with Grep
The -r flag is for recursive, meaning it will also look in sub directories. The -i flag is for case insensitivity, meaning WORD and word will both be found.
-
Uncompress A Bz2 File Using Tar Command
Uncompress a bz2 file using tar command @source http://www.kde.gr.jp/help/doc/kdebase/doc/khelpcenter/faq/HTML/bzip2.html