Coding

I have to clean this up.

  • coding
  • php
  • sql
  • webhosts
  • joomla tips. 

This section is a reflection of my coding skills -- cut and paste, and hastily thrown together. Most of this is copied from other sites -- just so I have fast reference here.
If it belongs to you - sorry. Let me know. Though most has attribution. ;-)

Pipes can be thought of as a tube where data enters one end and sorted or customized at the other end.  Using pipes you can connect two programs. You can make the output of a particular command to act as the input for another command.  You can carry on this chain  between commands for customized outputs.

Pipes can be used with most of the Unix commands. You should take care to check that the output of the first command is acceptable input to the second command.
It should not be that the first command has its output in some format other than text format and the second command works with only text input. If at all this sort of thing happens, you would mostly get an error message or you would have to type <Ctrl>-C to quit the execution of the command and come back to the prompt.

The grep command searches the given input FILEs for lines containing a match or a text string.

grep command syntax

The syntax is:

grep "text string to search” directory-path

OR

  1. Part I: Basic Find Commands for Finding Files with Names
  2. Part II: Find Files Based on their Permissions
  3. Part III: Search Files Based On Owners and Groups
  4. Part IV: Find Files and Directories Based on Date and Time
  5. Part V: Find Files and Directories Based on Size

 

This is a linux command line reference for common operations.
Examples marked with • are valid/safe to paste without modification into a terminal, so
you may want to keep a terminal window open while reading this so you can cut & paste.
All these commands have been tested both on Fedora and Ubuntu.

Subcategories

Other sites hosted by L Rio.