yes
The yes utility repeatedly outputs y
Or any term of your choosing. Comes in handy when scripting CLI apps that ask you questions.
You can follow along on Twitter or via the feed. Don't hesitate to get in touch. Sponsor the site.
Posts tagged with cli.
The yes utility repeatedly outputs y
Or any term of your choosing. Comes in handy when scripting CLI apps that ask you questions.
Clint is a module filled with a set of awesome tools for developing commandline applications.
In Python.
whiptail is a program that will let you to present a variety of questions or display messages using dialog boxes from a shell script. Currently, these types of dialog boxes are implemented: yes/no box, menu box, input box, message box, text box, info box, checklist box, radiolist box gauge box, and password box.
Runiq functions in a manner quite similar to GNU uniq, but runiq allows you to specify keys based on regular expressions in stead of field or the first N characters. Runiq takes most of the options that uniq does but omits the character and field related arguments —check-chars, —skip-fields, and —skip-chars since the same funtionality can be achieved using Perl regular expressions.
On Dir is a program that automatically executes scripts as you traverse directories at a terminal.
Via /r/linux
Text snippets and shortcuts for the command line: save items—URLs, boilerplate text, todos, & to boom’s lists, then either copy them to your clipboard, echo them or open them with a relevant application:
jack@mb ~ % boom urls Boom! Created a new list called urls. jack@mb ~ % boom urls otw http://onethingwell.org Boom! otw in urls is http://onethingwell.org. Got it. jack@mb ~ % boom open otw Boom! We just opened http://onethingwell.org for you.
Via Gina Trapani.
A command line tool to do maintenance work on a Wordpress install from the command line.
Update your WP installation, activate, deactivate install and remove plugins, build a sitemap.
An ‘Alfred-like’ cd helper for OS X: pass a few letters of the directory name you’re after to jump and it offers you a list of suggestions to select from.
A suite of five little utilities that make renaming files easier. qmv is probably the most useful of the bunch:
The qmv (“quick move”) program allows file names to be edited in a text editor. The names of all files in a directory are written to a text file, which is then edited by the user. The text file is read and parsed, and the changes are applied to the files.
deurlname is also handy to have around—it removes URL encoded characters (like %20 for space) from filenames.
A pair of very useful commands, pushd saves the current directory and (optionally) changes to a different one; popd returns you to the saved directory:
$ pwd /home/you/directory $ pushd /somewhere/far/away/in/the/filesystem $ pwd /somewhere/far/away/in/the/filesystem $ cd /somewhere/else $ cd /yet/another/place $ popd $ pwd /home/you/directory
apropos lets you search man pages and their descriptions by keyword: very handy if you can’t quite remember the command you want to use.
For example, here’s what apropos pdf shows me on my netbook:
pdffonts (1) - Portable Document Format (PDF) font analyzer (version 3.00) pdfimages (1) - Portable Document Format (PDF) image extractor (version 3.00) pdfinfo (1) - Portable Document Format (PDF) document information extractor (version 3.00) pdfroff (1) - create PDF documents using groff pdftexi2dvi (1) - convert Texinfo documents to PDF pdftohtml (1) - program to convert PDF files into HTML, XML and PNG images pdftoppm (1) - Portable Document Format (PDF) to Portable Pixmap (PPM) converter (version 3.00) pdftops (1) - Portable Document Format (PDF) to PostScript converter (version 3.00) pdftotext (1) - Portable Document Format (PDF) to text converter (version 3.00) roff2pdf (1) - transform roff code into pdf mode texi2pdf (1) - convert Texinfo documents to PDF tiff2pdf (1) - convert a TIFF image to a PDF document zathura (1) - a PDF viewer
NB: man -k does the same thing.