BugTag

Differences between revisions 1 and 2
Revision 1 as of 2008-08-24 03:01:01
Size: 1180
Editor: pool-72-81-242-91
Comment:
Revision 2 as of 2008-08-24 03:01:58
Size: 1186
Editor: pool-72-81-242-91
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= This is a ManXample entry for the "****" command. = == This is a ManXample entry for the "****" command. ==
Line 5: Line 5:
= Examples = === Examples ===

This is a ManXample entry for the "****" command.

This is the area to list the current manpage entry for the command in question.

Examples

This is the area to propose additional strings, comments, tips, work-flows, examples, and reference for commands and daemons. ManXamples will be added to the bottom of the official manpage entries the following standard format, so people can always find them and the listings are uniform. Please look at the commands listed before adding more, so work is not duplicated. If needed, simply add a function to an existing command if it adds significant value without complicating the spirit of the original example.

1) To search your entire drive for the string "happy", use the following command:

  • sudo find / -name "*happy*"

2) To find files in the current folder with the "xml" extension and append the .old extension to them, use the following command:

  • find -name "*.xml" -exec mv '{}' '{}'.old \;

3) To Unrar all archives in the current folder into their own folder, use the following command:

  • for x in *.rar; do mkdir "${x%.rar}" && cd "${x%.rar}" && unrar x "../$x" && cd ..; done

ManXamples/BugTag (last edited 2008-09-19 23:33:02 by pool-72-81-242-91)