Search Results

Search: Posts Made By: Crazy_Nix
1,402
Posted By Don Cragun
I don't think RudiC's suggestion is going to work...
I don't think RudiC's suggestion is going to work since you want separate counts of the number of lines containing each of the three strings, not a total of number of lines that contain one or more...
2,471
Posted By RudiC
How about [ $(grep -c "$CID" dhcp.conf) -gt 1 ]...
How about [ $(grep -c "$CID" dhcp.conf) -gt 1 ] && echo duplicate || echo uniqueThis does not cover the case that CID is not found at all.
1,265
Posted By bakunin
Please do so anyway. Using CODE-tags does two...
Please do so anyway. Using CODE-tags does two things: first, it switches to some fixed-width font, which helps in showing the structure of data (especially if they are fomatted in a table-like way)...
1,265
Posted By RudiC
Please use code tags as required by forum rules! ...
Please use code tags as required by forum rules!

---------- Post updated at 11:42 ---------- Previous update was at 11:35 ----------

Your specification still is extremely sparse. Try thisawk...
Showing results 1 to 4 of 4

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