Advertisement
szabozoltan69

step1belso

Apr 2nd, 2012
173
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. f="j"; sorkoz=1077000
  3. rownr=$(wc -l $f|cut -d ' ' -f 1)
  4.  
  5. for i in $(/usr/bin/seq $i 1 20); do
  6.  s=$(($sorkoz*$i))
  7.  #debug echo $s $rownr
  8.  if test $s -le $rownr ; then
  9.  #debug sorkellene=$(awk -F "" 'NR == '$s' { ezaz = $10 } (NR > '$s') && (ezaz != $10) { printf "%d", NR-1; print " " $_; exit;}' $f)
  10.  awk -F "" 'NR == '$s' { ezaz = $10 } (NR > '$s') && (ezaz != $10) { print "csplit xxmaradek Q" $_  "Q; mv xx00 f'$i'; mv xx01 xxmaradek"; exit;}' $f
  11.  fi
  12. done
  13.  
  14. echo "exit 0"
  15. exit 0
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement