daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env fish
  2.  
  3. for f in (ls)
  4.     set -lx ff (echo -n $f | sed 's/\\\/\//g')
  5.     set -lx df (dirname $ff)
  6.     if test "$df" != "."
  7.         mkdir -p $df
  8.         mv $f $ff
  9.     end
  10. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top