Linux/Unix : Input/Ouput redirection

The output of the commands displayed in the screen is called standard output.

Redirect output to file:

If you want to write the output of command to file then use >

for example : du -k >usage_readable.txt

Each time the command executes, the file content overwritten.

Appending the o/p of the command in a file

To keep append the file use >>

so it keep append, the file keeps grow.

Standard Input

By default the i/p taken from keybords.

Redirect Input

You can use the file as input for commands.
For example:

sort < name.txt
name.txt file used as input for sort command.

Pipes:

output of one command can be redirected to i/p for another command using pipes(|).

for example:

find * | wc -l
It will find all the files in the current directory and forward output to wc command.

How to test mobile site using mozilla firefox?

All the mobile site developers can not affort to test in different mobile devices. So they normally look for different option, atleast for initial test. Firebox have add-ons to test the mobile sites.

Mobile site developers can use these add-ons to check how the site looks and what need to change to give best look and feel in mobile devices.

British psychology - Birth Month - Character

According to british psychology, the following are true regarding your month of birth.

Jan - lovable but childish
Feb - Sacrificing
Mar - Playfull but clever and understands things quickly.
Apr - Poweful but stupid
May - Lucky and caring.
June - Peace maker.
July - Knowledgeable
Aug - Great but lazy
Sep - Artificial and smart
Oct - Adament but nice.
Nov - Understanding .
Dec - Brilliant but silly

Check yourself.

Using the javascript in browser addressbar

Using the javascript in browser addressbar

1. suppose you have a javascript variable called currentStat in your page and want to know its recent value
you can just type javascript::alert(currentStat); in addressbar of the current page and enter

How to concatnate / join two or more cells/columns in excel?

For example you have value in column N and column O from row 20. want to join both value with space.

Join column
1. If you want to join N and O column values and write to column P then write the following in column P of row 20 and enter

Syndicate content