Like this?
awk -F, '$2<2000{print $1", "$3}' sasi
Ravi, little stone
Sushanth, Menlo park
Rocky, columbus
Define comma ,
as the field separator, check that field 2 is numerically smaller than 2000, print the 1st and 3rd field if it is.
More Related Contents:
- Get exit code of a background process
- What’s the magic of “-” (a dash) in command-line parameters?
- How to get overall CPU usage (e.g. 57%) on Linux [closed]
- What does the number in parentheses shown after Unix command names in manpages mean?
- How to merge two files using AWK? [duplicate]
- Sorting multiple keys with Unix sort
- What does `set -x` do?
- Does “argument list too long” restriction apply to shell builtins?
- Given two directory trees, how can I find out which files differ by content? [closed]
- How to split CSV files as per number of rows specified?
- How does SIGINT relate to the other termination signals such as SIGTERM, SIGQUIT and SIGKILL?
- Fast Concatenation of Multiple GZip Files
- Linux/Unix man page syntax conventions
- Is the UNIX `time` command accurate enough for benchmarks? [closed]
- Run a command in a shell and keep running the command when you close the session
- Uppercasing First Letter of Words Using SED
- How to sort strings that contain a common prefix and suffix numerically from Bash?
- Concatenating Files And Insert New Line In Between Files
- Why can’t I use Unix Nohup with Bash For-loop?
- Is gettimeofday() guaranteed to be of microsecond resolution?
- How to compare two DateTime strings and return difference in hours? (bash shell)
- How do I get cURL to not show the progress bar?
- Using `date` command to get previous, current and next month
- Joining multiple fields in text files on Unix
- Setting the Vim background colors
- Linux vi arrow keys broken in insert mode
- Why doesn’t “sort file1 > file1” work?
- Bash script to remove ‘x’ amount of characters the end of multiple filenames in a directory?
- Redirecting stdout with find -exec and without creating new shell
- How pthread_mutex_lock is implemented