grep on Solaris
Today I was asked by a colleague how to match a regex in a text file and return a specific number of lines both before and after the match. GNU grep has a very easy solution for this; the -A/B/C flags, as shown on my […]
|
||||||
grep on Solaris Today I was asked by a colleague how to match a regex in a text file and return a specific number of lines both before and after the match. GNU grep has a very easy solution for this; the -A/B/C flags, as shown on my […] Q. How do I format date to display on screen on for my scripts as per my requirements? A. You need to use standard date command to format date or time for output or to use in a shell script.
Syntax to specify formatdate +FORMAT Task: Display date in mm-dd-yy formatType the command as […] |
||||||
Copyright © 2024 - All Rights Reserved Powered by WordPress & Atahualpa |
Recent Comments