diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-10 15:06:27 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-10 15:06:27 -0500 |
| commit | a9eb95269dd183b6f8e56e322b50e7973815565e (patch) | |
| tree | 7b6ffd66d7907305d7ffc24b632beab4d9b18f42 /dotfiles/system/.profile.d/dd.sh | |
| parent | ab76058ce2f1f0c9a9935647bddf16b03e5a3e1f (diff) | |
sorting through profile
Diffstat (limited to 'dotfiles/system/.profile.d/dd.sh')
| -rw-r--r-- | dotfiles/system/.profile.d/dd.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/dotfiles/system/.profile.d/dd.sh b/dotfiles/system/.profile.d/dd.sh deleted file mode 100644 index 5390a65..0000000 --- a/dotfiles/system/.profile.d/dd.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -# dd.sh -# Craig Jennings <c@cjennings.net> -# takes input and output files as arguments -# prints parameters needed for dd - - -dd_with_bs() { - OUT_DIR=$(dirname "$2") - if [ ! -e "$1" -o ! -e "$OUT_DIR" ]; then - echo "$1 or $OUT_DIR doesn't exist" - return 1 - fi - IN_BS=$(stat -c "%o" "$1") - OUT_BS=$(stat -c "%o" "$OUT_DIR") - - echo dd \"if=$1\" \"of=$2\" \"ibs=$IN_BS\" \"obs=$OUT_BS\" -} |
