Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Thanks for all your help but instead of perl can there be a linux command for this. I need to understand the way out as well...for getting the exact count so that i can log the individual data for all. In addition to it we can have duplicate entries as well. I would be happy to get that as well along with indivdual log for all such data Commented Oct 23, 2024 at 15:06
  • @SuryaShukla? What's a Linux command? Linux is just an operating system kernel. perl predates Linux and has been available for Linux-based operating systems since about as long as Linux has existed. Commented Oct 23, 2024 at 15:31
  • @SuryaShukla perl is a Linux command. Commented Oct 23, 2024 at 18:29
  • @StéphaneChazelas Thanks , i understand that perl is a linux command. But since I am not a hard core linux user, so just thought if something using grep/awk/cut like commands can be given...Thanks once again. The perl one worked but seems some issue in the range figure as there are duplicate entries also in the file I have to only ocnsider the unique ones for the range. example if the figure to individual entry is 1 and while range expansion it gets the same figure again, it should be ignored. Commented Oct 24, 2024 at 4:41