|
From: | Sanjib Sikder |
Subject: | Re: [O] org back up |
Date: | Thu, 18 Oct 2012 00:32:00 +0530 |
Sanjib Sikder [2012-10-17 23:55:12 +0530] wrote:How about this:
> #!/bin/bash
>
> mkdir -p /home/USERNAME/org/backup && \
> find $HOME -type f -name '*\.org' ! -path "/home/USERNAME/org/backup/*" \
> -exec cp -t /home/USERNAME/org/backup/ \{\} \;
#!/bin/sh
target=$HOME/org/backup
mkdir -p "$target" && \
find "$HOME" -type f -name '*.org' ! -path "$target/*" \
-exec cp -t "$target" {} +
[Prev in Thread] | Current Thread | [Next in Thread] |