第16月第24天 find iconv sublime utf-8

1.

find . -type f -exec echo {} ;

 

find src -type f -exec sh -c "iconv -f GB18030 -t UTF8 {} > {}.txt" ;

find src -name "*.cpp.txt" | awk -F '.txt' '{print "mv "$0 " "$1}' | sh

 

 

find include -type f -exec sh -c "iconv -f GB18030 -t UTF8 {} > {}.txt" ;

find include -name "*.hpp.txt" | awk -F '.txt' '{print "mv "$0 " "$1}' | sh

 

http://blog.csdn.net/jackxinxu2100/article/details/47101997

 

2.

 

按ctrl+~快捷键,调出一个小文本款,然后粘贴以下代码:官网代码

 

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

 

点击Package Control,上面会出来一个输入框,我们输入install,就会自动有提示那个install package,我们点击一下install package,输入框会消失,稍等一下又会弹出个输入框。

 

ConvertToUTF8

 

https://packagecontrol.io/installation

https://jingyan.baidu.com/article/fc07f98972ee0a12fee51943.html

 

3.sublime download

 

settings User

 

{
	"bootstrapped": true,
	"debug": true,
	"installed_packages":
	[
		"Package Control"
	],
	"downloader_precedence":
	{
		"linux": [ "curl", "urllib",    "wget" ],
		"osx": [ "curl", "urllib" ],
		"windows": [ "wininet" ]
	},
}

  

 

https://github.com/wbond/package_control/issues/1220

 

原文地址:https://www.cnblogs.com/javastart/p/8341550.html