收藏到CSDN网摘
To compare files, there are different approaches - GUI, command line, or using existing software. But to deal with huge files (meansured using Gb), the GUI/software may encounter problems of hanging and unresponsive. The command line must be the only option left.
1 Jul 2019
27 Jun 2019
Echo Linux Release Version
收藏到CSDN网摘
Sometime, I need to recall the Linux version I'm using inside the Virtual Box. I know it's Xubuntu, but which version is it? Usually the commands to do things keep the same. However, they do change from version to version in rare occacions. Type the command below in any terminal window, you'll ge the answer straigh away.
Sometime, I need to recall the Linux version I'm using inside the Virtual Box. I know it's Xubuntu, but which version is it? Usually the commands to do things keep the same. However, they do change from version to version in rare occacions. Type the command below in any terminal window, you'll ge the answer straigh away.
24 Apr 2019
The Best Image Ever That Illustrates High-Order Functions Clearly
12 Feb 2019
VS2013 Regular Expression Bug? Maybe
收藏到CSDN网摘
I was trying to parse a large file with blocked data using regex library in VS2013. By working in 2 sites, I installed gcc on my Linux machine and VS2013 on Windows. The expression is very simple as "START_INFO[here is the tricky bit]END_INFO", where each block is clearly enclosed by its own start and end information. Inside the [] (square brackets) I'd like to match ALL valid characters. The . (dot) matches almost all but not the newline character and it becomes literal inside the square brackets []. So I came up with an alternative solution "[\s\S]+?" which should guide the program to search all whitespace and non-whitespace characters until it reaches the END_INFO.
I was trying to parse a large file with blocked data using regex library in VS2013. By working in 2 sites, I installed gcc on my Linux machine and VS2013 on Windows. The expression is very simple as "START_INFO[here is the tricky bit]END_INFO", where each block is clearly enclosed by its own start and end information. Inside the [] (square brackets) I'd like to match ALL valid characters. The . (dot) matches almost all but not the newline character and it becomes literal inside the square brackets []. So I came up with an alternative solution "[\s\S]+?" which should guide the program to search all whitespace and non-whitespace characters until it reaches the END_INFO.
Subscribe to:
Posts
(
Atom
)