Search Results

Search: Posts Made By: Aia
2,178
Posted By Aia
Please, give it a try: perl -nle ...
Please, give it a try:
perl -nle '$c=()=$_=~/Urgent/g; printf "Line $.: %d\n", $c' Jewel.file
Output:
Line 1: 1
Line 2: 3
Line 3: 0
Line 4: 0
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 10:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy