HKDevTips
A place for all technical hints
Showing posts with label
wc
.
Show all posts
Showing posts with label
wc
.
Show all posts
Tuesday, December 3, 2019
Windows equivalent of "wc -l" command in Linux
To count the number lines of files / stdout in Linux, we uses "wc -l" to achieve. In Windows, we use the following instead:
find /c /v ""
For example, suppose we have a file "sample_file.txt" and we want to know the number of lines of that file, we can perform the following:
type sample_file.txt | find /c /v ""
Older Posts
Home
Subscribe to:
Posts (Atom)
Learning System Design with Cute Animation
This one is superb - https://designed-to-scale.vercel.app/
Office 2003 SKU011.CAB problem
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -...
Adjusting the screen resolution of BlueStack
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
Java encoding : UTF-8, Big5, x-MS950-HKSCS
Suppose you got a file in Big5 containing some HKSCS characters (e.g. 深水埗, 赤鱲角, etc). When your environment (Ref: Charset.defaultCharset( ) ...