http://abc/blah/hhh/25927/3456/bbhttp://vfg/blahgg/hhvvh/kkk/25927/2378/bb/mmhttp://lah/hhh/25927/fff/bb/somthinin the above lines, the common number is 25927 always occurring like /25927/ and it is present in each and every line.But the number is a variable I don't know ahead of time, so I cannot use grep 25927; instead it should be something like grep /commonnumber present in all lines/ file
How to extract common number across multiple lines?
text processing;command line;grep;posix;numeric data