User Tools

Site Tools


unix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
unix [2011/04/27 17:19]
robm
unix [2012/05/04 11:31]
robm [Finding directories NOT containing a specific file]
Line 4: Line 4:
 //**Note:** This are also includes web-related things, such as Apache, which arn't really specific to unix & linux systems// //**Note:** This are also includes web-related things, such as Apache, which arn't really specific to unix & linux systems//
  
 +  * [[unix:lvm_recovery]] --- Recovering my LVM volume stored on my RAID array.
   * [[unix:flash]] --- Getting fullscreen performance out of Adobe Flash under Ubuntu   * [[unix:flash]] --- Getting fullscreen performance out of Adobe Flash under Ubuntu
   * [[unix:x|My Perfect X11 setup]] --- Portrait PC monitor with compiz + HDTV without compiz   * [[unix:x|My Perfect X11 setup]] --- Portrait PC monitor with compiz + HDTV without compiz
Line 29: Line 30:
 The streams are combined by the parenthesis which create a sub-shell. The streams are combined by the parenthesis which create a sub-shell.
  
 +===== Finding directories, without examining .snapshots =====
 +<code bash>
 +find . -type d \( -name .snapshot -prune -o -name .git \)
 +</code>
 +
 +Looking in the current directory, ''.'', find entries of type ''d'' (directories) for which: if the name is ''snapshot'' remove it from consideration, if the name is ''.git'' carry on (to implicitly ''-print'' the entries to STDOUT).
 ===== Renaming ===== ===== Renaming =====
 There is actually a ''rename'' command, which can be used to change extensions thus: There is actually a ''rename'' command, which can be used to change extensions thus:
unix.txt · Last modified: 2021/12/13 13:55 by robm