Quantcast
Channel: nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
Viewing all articles
Browse latest Browse all 2612

How to assign a grep command value to a variable in Linux/UnixnixCraft

$
0
0
How do I store grep command output in shell variable? What is the syntax to store the command output into a variable in Linux or Unix? You can use the for any given input files, selecting lines that match one or more patterns. By default the output shown on screen. But, you can store output […]

Viewing all articles
Browse latest Browse all 2612

Trending Articles