This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | find . -name \*.md -type f -exec pandoc -o {}.txt {} \; | |
| would run pandoc on all files with a .md suffix, creating a file with a .md.txt suffix. | |
| (You will need a wrapper script if you want to get a .txt suffix without the .md, | |
| or do ugly things with subshell invocations.) {} in any word from -exec to the | |
| terminating \; will be replaced by the filename. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sub := (command1 = "#a") ? "add" | |
| : (command1 = "#b") ? "build" | |
| : (command1 = "#c") ? "change" | |
| : (command1 = "#d") ? "down" | |
| : (command1 = "#e") ? "unten" | |
| : (command1 = "#f") ? "find" | |
| : (command1 = "#i") ? "info" | |
| : (command1 = "#j") ? "join" | |
| : (command1 = "#k") ? "kill" | |
| : (command1 = "#l") ? "locate" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| for file in * | |
| do | |
| # Avoid renaming diretories! | |
| if [ -f "$file" ] | |
| then | |
| newname=`head -1 $file` | |
| if [ -f "$newname" ] | |
| then | 
NewerOlder