mdsh.com/wiki


RecentChanges

TextFormattingRules
AllWikiTopics
OrphanedWikiTopics
ToDoWikiTopics
WikiLockList
RSS
Export2HTML

WikiSearch

SetUsername

StartingPoints
Home
Bash

Little handy Bash one-liners...

copy all folders bar one from one disk to another.

This uses a good trick to cope with folders with spaces in:

sudo ls /Volumes/My\ Book | \
 while read i;do \
  if [[ "Bedroom Windows disk image (failed March 2008)" != ${i} ]]; then \
    echo ${i}; \
    rsync -av "/Volumes/My Book/${i}" "/Volumes/LaCie 3/_MyBook/"; \
  fi; \
 done


find -maxdepth -type f | \
 while read i;do \
   ~/src/ffmbc/FFmbc-0.6-rc6/ffmbc -i "$i"; \
 done


Bash is mentioned on: Linux


VeryQuickWiki Version 2.8.1 | Admin

All contents copyright mdsh.com (C) 2011-2023.