You could sum the column 57 of your file, and print it using
awk '{split($0,a,","); sum += a[57]} END {print sum}'
Related Posts:
- How to split a delimited string into an array in awk?
- How to pretty print XML from the command line?
- What are file descriptors, explained in simple terms?
- How to kill a process running on particular port in Linux?
- Display exact matches only with grep
- Display exact matches only with grep
- What does ^M character mean in Vim?
- What does it mean to write to stdout in C?
- What do ‘real’, ‘user’ and ‘sys’ mean in the output of time(1)?
- mkdir’s “-p” option
- wait(null) and wait(&status) C language and Status
- Shell script “for” loop syntax
- How to get the current directory in a C program?
- When could or should I use chmod g+s on a file or directory?
- Equivalent of *Nix ‘which’ command in PowerShell?
- What is the difference between SIGSTOP and SIGTSTP?
- How to colorize diff on the command line
- How to colorize diff on the command line
- How to read a file into a variable in shell?
- gpg decryption fails with no secret key error
- What is the difference between tar and zip?
- Display current path in terminal only
- What do the dup() and dup2() systems really do?
- What generates the “text file busy” message in Unix?
- Reasoning behind C sockets sockaddr and sockaddr_storage
- How can I send an email through the UNIX mailx command?
- Rename multiple files based on pattern in Unix
- What is the difference between a symbolic link and a hard link?
- SCP Permission denied (publickey). on EC2 only when using -r flag on directories
- binary operator expected error when checking if a file with full pathname exists
- What is special about /dev/tty?
- How do I do ‘mount –bind’ in /etc/fstab?
- How to read backward from the end of file in less or more?
- Getting the last match in a file using grep
- How do I pause my shell script for a second before continuing?
- What is newline character — ‘\n’
- Why does ENOENT mean “No such file or directory”?
- sudo: npm: command not found
- In the shell, what does ” 2>&1 ” mean?
- How do I grep recursively?
- In the shell, what does ” 2>&1 ” mean?
- How to grep for case insensitive string in a file?
- grep –ignore-case –only
- What are .a and .so files?
- How do I grep recursively?
- OS X: equivalent of Linux’s wget
- Connect: Socket operation on non-socket
- What is the difference between read and pread in unix?
- OS X: equivalent of Linux’s wget
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- SSH using python script
- How can I exclude directories from grep -R?
- Argument list too long error for rm, cp, mv commands
- Difference between using “chmod a+x” and “chmod 755”
- What is a bus error? Is it different from a segmentation fault?
- What are NR and FNR and what does “NR==FNR” imply?
- Who can access a file with octal permissions “000” on Linux/UNIX?
- How to cat <
> a file containing code? - Using awk to remove the Byte-order mark
- Given two directory trees, how can I find out which files differ by content?
- Diff command along with Grep gives “Binary file (standard input) matches”
- OSError – Errno 13 Permission denied
- What is cp: cannot stat error in Unix, I get this error when trying to copy thing from one folder to another
- Printing the last column of a line in a file
- What is a bus error? Is it different from a segmentation fault?
- What can cause a “Resource temporarily unavailable” on sock send() command
- How to download a file from server using SSH?
- What is the ASCII Code of ½?
- Get Unix timestamp with C++
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- Absolute value in awk doesn’t work?
- Why should we check WIFEXITED after wait in order to kill child processes in Linux system call?
- Command to change the default home directory of a user
- Use of `NF` in awk command
- Is there any simple way to benchmark Python script?
- What is the difference between sed and awk?
- What does “&” at the end of a linux command mean?
- Can’t remove a directory in Unix
- Which of sprintf/snprintf is more secure?
- Syntax error near unexpected token ‘then’
- C fopen vs open
- Shell script not running, command not found
- Reaching EOF with fgets
- How can I do a recursive find/replace of a string with awk or sed?
- Difference between sh and Bash
- How do I write stderr to a file while using “tee” with a pipe?
- What are the uses of the exec command in shell scripts?
- How do I get the current Unix time in milliseconds in Bash?
- Copying a large directory tree locally? cp or rsync?
- Can I nohup/screen an already-started process?
- In my /etc/hosts/ file on Linux/OSX, how do I do a wildcard subdomain?
- When does /tmp get cleared?
- SSL Certificate Location on UNIX/Linux
- What does ‘set -e’ do, and why might it be considered dangerous?
- How to remove empty/blank lines from a file in Unix (including spaces)?
- How to forcibly close a socket in TIME_WAIT?
- How can I rename a Unix user?
- Can you have more than one ~/.ssh/config file?
- How to check what port mysql is running on
- Do you have any useful awk and grep scripts for parsing apache logs? [closed]