21 Jun

Convert a text file format from MSDOS to UNIX


dos2unix input_file output_file

27 Apr

This command removes all the even lines from the file given as the argument


cat example.txt|awk 'NR%2==1'

25 Dec

The command cmp is similar to diff:


# cmp file1 file2
file1 file2 differ: byte 10, line 1

11 Nov

Original

28 Sep

This is how to create hard and soft links in Linux. Remember, a directory cannot be hard linked.


ln /path/to/file.ext .

ln -s /path/to/file.ext .


19 Aug

The search that limits the results to just directory listings…

intitle:”index.of” inanchor:”Last Modified” inanchor:”Description” inanchor:”Parent Directory” -filetype:php -filetype:asp -filetype:htm -filetype:html -inurl:”index.of” search.string

09 Jul

One can use awk to get a specific column from a command output…

First column of the command
date|awk '{print $1}' 11th Column of the command ps aux|awk '{print$11}'

Use a different Field separator
cat /etc/passwd|awk -F ':' '{print \$1}'

[tags]awk,sed,shell,script,output,filter,text,cli,linux,string,separator[/tags]

29 May

Note: This post may be wrong. I’m getting a lot of complaints that this doesn’t work. See the Microsoft page on how to do this here

• Click Start and Run
• Type “Control Userpasswords2” and press enter.
• Uncheck the box for “Users must enter a user name and password to use this computer.”
• Click Apply and Ok.

23 Apr

Omit unnecessary words. Make every sentence contribute to the point you want to make. Use paragraphs as your arguments. Go through a piece and ask, is this word/clause/sentence/paragraph really necessary? Does it add to the reader’s understanding of the topic, or is it just wind? And once you’ve taken out any fluff, go over it again and ask, do my paragraphs flow clearly from one to the next? Do my arguments build logically on each other?

Avoid passive voice. Whenever possible, rewrite sentences to make them active. You can usually rewrite sentences that begin with “There is” or “There are” to make them more active.

Avoid future tense.

Avoid cliches and overused phrases such as “That’s where ProductX comes in,” “Enter ProductX,” and “last but not least.”

Spell out all abbreviations on first reference: “Open Source Technology Group (OSTG)”

Spell out words on first reference: say “application” before you refer to “apps.”

Spell out numerals less than 10, unless they refer to amounts with units. Use numerals for numbers greater than nine.

Original Article

[tags]english,writing,article,rules,blogging[/tags]