you are close. you have to concatenate the command line with awk variables:
awk '{system("wc "$1)}' myfile
More Related Contents:
- shell – remove numbers from a string column [closed]
- How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?
- How to select lines between two marker patterns which may occur multiple times with awk/sed
- How to use multiple arguments for awk with a shebang (i.e. #!)?
- How can I shuffle the lines of a text file on the Unix command line or in a shell script?
- Using awk with variables
- How to get the second column from command output?
- Do a tail -F until matching a pattern
- Trim leading and trailing spaces from a string in awk
- How to add text at the end of each line in unix
- Awk replace a column with its hash value
- How to print 5 consecutive lines after a pattern in file using awk [duplicate]
- Get lines between two patterns
- How do I copy a folder from remote to local using scp?
- Bash tool to get nth line from a file
- “ls: not found” after running “read PATH”
- How could the UNIX sort command sort a very large file?
- Compare two files line by line and generate the difference in another file
- Floating-point arithmetic in UNIX shell script
- How to make awk ignore the field delimiter inside double quotes? [duplicate]
- How to download GitHub Release from private repo using command line
- How to input a path with a white space?
- Compare a string using sh shell
- Make xargs handle filenames that contain spaces
- How to assign the output of a command to a Makefile variable
- Block Comments in a Shell Script
- What’s the difference between ${varname} and $varname in a shell scripts
- How to run commands via NodeJS child process?
- How to run SWI-Prolog from the command line?
- Exclude specific filename from shell globbing