Tag Info

New answers tagged

0

Looks like the path that zip is matching against includes the root path element you give it, unless the root is . In my case, if I wanted to exclude anything under LocalLow, I needed: $ zip home.zip -y -r HOME -x 'HOME/AppData/LocalLow/*' Yielding: adding: HOME/ (stored 0%) adding: HOME/AppData/ (stored 0%) adding: HOME/AppData/a (deflated 39%) ...


1

Try putting it as -x '*AppData/*'


5

Poking around with various inputs, I felt grep did its own magic for line-endings: $ printf "foo\rbar\n" | grep -oz $'\r' | od -c 0000000 \r \n 0000002 $ printf "foo\rbar\r\n" | grep -oz $'\r' | od -c 0000000 $ printf "foo\rbar\r" | grep -oz $'\r' | od -c 0000000 \r \n \r \n 0000004 (The -z was my lame attempt to make grep match everything.) And so ...


1

In cygwin you access drive letters by going through /cygdrive eg: sh /cygdrive/d/dev/Main/Env/tpsScripts/devenv.sh



Top 50 recent answers are included