Skip to content

Instantly share code, notes, and snippets.

@thomsh
Created March 14, 2016 17:18
Show Gist options
  • Select an option

  • Save thomsh/4a6c575d4982e86e9153 to your computer and use it in GitHub Desktop.

Select an option

Save thomsh/4a6c575d4982e86e9153 to your computer and use it in GitHub Desktop.
split file hubic
function hubic_splitbigfile_in_cwd (){
set -x
for f in $(find . -type f -ls |awk '{ if ($7 >4194304000) print $11}')
do
split -d --bytes=4000M "${f}" "${f}."
rm -f -- "${f}"
done
set +x
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment