Guest User

Untitled

a guest
Mar 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. head -c 50 file
  2.  
  3. cat ${file} | cut -c1-50
  4.  
  5. cut -c1-50 < "$file"
  6.  
  7. dd status=none bs=1 count=50 if=${filename}
  8.  
  9. grep -om1 "^.{50}" ${filename}
  10.  
  11. (IFS= read -r line <${filename}; echo ${line:0:50})
  12.  
  13. sed -e 's/^(.{50}).*/1/' yourfile
Add Comment
Please, Sign In to add comment