2018년 10월 9일 화요일

토탈커맨더 파일명일괄변경 도움말(정규식)

Dialog box - Multi-rename tool
 
With this dialog box, you can rename a list of files selected in Total Commander. Instead of * and ? wildcards, this function uses placeholders in brackets []. The new names are immediately shown in the result list, but the files are not renamed until the Start! button is pressed.
 
New in TC9: When there are name collisions, e.g. because the rename mask leads to multiple files with the same name, or a file with that name already existed, then you get the option to auto-rename the files to "name (2).ext", "name (3).ext" etc. This will not be shown in the preview.
 
Field Description
 
Rename mask: file name
With this field, you can create a definition for a new file name. The buttons below allow to insert place holders for the previous name, parts of the name, a counter, file date/time, or a plugin field. The + and # buttons allow to insert less used fields like the parent directory name. Place holders are always in brackets [ ], while all other letters (without brackets) will be placed in the new name without a change.
See below for a description of all available placeholders! Use Shift+Del to remove no longer wanted entries from the list.
Files can now also be moved to other directories by specifying directory separators "\" (backslashes) in the name. Directories which do not exist yet will be created automatically.
 
Extension Definition string for extension. In principle, all placeholders can be added to either of the two definition boxes. The rename tool will create a rename string like this: Fields in name mask + "." + Fields in extension mask. The reason why the two fields are separated is to prevent the accidental removal of file extensions, which would remove the association of files with a certain program.
 
Search & Replace The string entered in the field 'Search for' is replaced by the string in 'Replace with'. The text in 'search for' is NOT case sensitive! Both fields support the placeholders (wildcards) * and ?. A * stands for any number of characters, a ? for exactly one character.
This function is applied AFTER the rename mask!
You can search+replace multiple strings in one step! The strings need to be separated by the vertical line (Alt+124).
Example: Replace Umlauts+Accents:
Search for: ä|ö|ü|é|è|ê|à  Replace with: ae|oe|ue|e|e|e|a
 
^ Respect upper-/lowercase. Can be used to replace uppercase characters with other characters than lowercase.
Example: Replace Umlauts+Accents considering upper/lowercase:
Search for: ä|ö|ü|é|è|ê|à|Ä|Ö|Ü|É|È|Ê|À  Replace with: ae|oe|ue|e|e|e|a|AE|OE|UE|E|E|E|A
 
1x Only replace the first occurrence of the search string if it appears multiple times in the file name
 
[E] Also replace the search text within the extension.
Rules for the case that this option is not checked:
1. When using the rename mask, only the part in "File name" will be modified by search+replace.
2. When loading the names from an external text file, the part starting with the last dot will not be modified.
Example: To replace all dots in the file name except for the one separating name and extension, uncheck this box.
 
RegEx Now supports regular expressions.
Subst. Substitution: The entire file name will be replaced by the characters entered in the "Replace" field. If this option isn't checked, only the found expression will be replaced. You can work with subexpressions, see the sample in regular expressions.
 
Upper/lowercase Converts the whole string to uppercase/lowercase/first letter uppercase,rest lowercase. This function is applied AFTER the rename mask and after search&replace. Use the [U], [L] and [n] placeholders to convert only certain parts of the name to upper/lowercase!
New: First of each word uppercase (English in Titles) excludes the following words from uppercase conversion, except at the start or end:
a,an,the,at,by,for,in,of,on,to,from,up,and,as,but,or,nor,yet,so,vs
 
Opens a context menu with the following options:
Load names from file: Specify a text file from which the new names should be loaded
Edit names: Save current target names to a text file, edit them, and paste back.
Configure editor: Choose a different editor to edit the files. Make sure that the editor saves as plain text!
The menu can be opened with F10.
 
Define counter [C] Allows to define the counter for the [C] field(s).
Start at: Number of the first file. The files are always numbered the same way as they are shown in the result list. You can sort the result list just like in the main Total Commander window. Additionally you can reorder individual items using drag&drop, or Shift+Cursor keys.
Step by: The counter is increased/decreased by this value.
Digits: Width of the counter field. If digits is >1, the rename tool will insert leading zeros to get a fixed width number field.
 
F2 Load/save settings
Allows to load or save the settings of the multi-rename tool.
Sets the default settings (no changes to the names)
Save settings
Allows to save the current settings
Delete entry Deletes the last selected entry from the list
Entry names Loads settings saved earlier
 
Allows to sort by old names, extensions, sizes or time stamps
Shows a list of all files being renamed. The modified names are shown in the New name column. All changes to the above fields are immediately shown in this column, but the files are not actually renamed until the Start! button is pressed. If the rename mask contains an error, the string is shown.
Individual items can be moved up/down with drag&drop or Shift+Cursor keys. This is useful for changing the file order for the counter function.
 
(next step) Loads the rename results for the next rename step. Useful if you want to apply multiple rename rules to the same set of files. Shortcut: F5.
Start! Starts to rename files. There will be a warning message if there are name conflicts.
Undo Tries to undo the rename operation in reverse order (last renamed file first). This also works AFTER closing the Multi-Rename-Tool! Just re-open it with any file(s).
Result list Creates a protocol of the renamed files.
Close Closes the dialog box without any further actions.
 
 
Here is a description of all available placeholders. IMPORTANT: Upper/lowercase is relevant!
[N] old file name, WITHOUT extension
[N1] The first character of the original name
[N2-5] Characters 2 to 5 from the old name (totals to 4 characters). Double byte characters (e.g. Chinese, Japanese) are counted as 1 character! The first letter is accessed with '1'.
[N2,5] 5 characters starting at character 2
[N2-] All characters starting at character 2
[N02-9] Characters 2-9, fill from left with zeroes if name shorter than requested (8 in this example): "abc" -> "000000bc"
[N 2-9] Characters 2-9, fill from left with spaces if name shorter than requested (8 in this example): "abc" -> "      bc"
[N-8,5] 5 characters starting at the 8-last character (counted from the end of the name)
[N-8-5] Characters from the 8th-last to the 5th-last character
[N2--5] Characters from the 2nd to the 5th-last character
[N-5-] Characters from the 5th-last character to the end of the name
[A] Old file name, WITH extension (All characters of the name), without the path
[2-5] Characters 2-5 from the name INCLUDING path and extension (other numbers as in [N] definition)
[P] Paste name of the parent directory, e.g. when renaming c:\directory\file.txt -> pastes "directory".
Also working: [P2-5], [P2,5], [P-8,5], [P-8-5] and [P2-], see description of [N] above.
[G] Grandparent directory (usage: see [P]).
[E] Extension
[E1-2] Characters 1-2 from the extension (same ranges as in [N] definition)
[C] Paste counter, as defined in Define counter field
[C10+5:3] Paste counter, define counter settings directly. In this example, start at 10, step by 5, use 3 digits width.
Partial definitions like [C10] or [C+5] or [C:3] are also accepted.
Hint: The fields in Define counter will be ignored if you specify options directly in the [C] field.
[C+1/100] New: Fractional number: Paste counter, but increase it only every n files (in this example: every 100 files).
Can be used to move a specific number of files to a subdirectory,e.g. [C+1/100]\[N]
[Caa+1] Paste counter, define counter settings directly. In this example, start at aa, step 1 letter, use 2 digits (defined by 'aa' width)
[C:a] Paste counter, determine digits width automatically, depending on the number of files. Combinations like [C10+10:a] are also allowed.
[T1] After this position, use last modification date/time from renamed file for all date/time fields (default).
Note: These are just switches! Use them with the other time placeholders, e.g. [T1][YMD] [hms]
[T2] After this position, use current date/time (when rename dialog was opened)
[T3] After this position, use current date/time (when rename options were last changed)
[d] Paste date as defined in current country settings. / is replaced by a dash
[Y] Paste year in 4 digit form
[y] Paste year in 2 digit form
[M] Paste month, always 2 digit
[D] Paste day, always 2 digit
[t] Paste time, as defined in current country settings. : is replaced by a dot.
[h] Paste hours, always in 24 hour 2 digit format (0-23)
[H] Paste hours, always in 12 hour 2 digit format (1-12)
[i] am/pm indicator in English, e.g. for time format 10.30pm. Use [i1] for just a or p, e.g. 10.30p.
[m] Paste minutes, always in 2 digit format
[s] Paste seconds, always in 2 digit format
[u] Convert all composite characters (e.g. separate a and ^) to precomposed characters (â). Must be the first placeholder in the command.
[U] All characters after this position in uppercase
[L] All characters after this position in lowercase
[F] First letter of each word uppercase after this position, all others lowercase
[f] Like [F], but using rules for English in titles (certain words like a, in, the, ... lowercase)
[n] All characters after this position again as in original name (upper/lowercase unchanged)
[%x%] Insert value of environment variable "x". Also supports ranges like [%x%1-5]
[%x%\] Same as [%x%], but only the last part of a path (e.g. c:\temp -> temp)
[%x%_] Same as [%x%], but replace all backslashes in paths by the provided character (here: "_") and remove the ":"
[[] Insert square bracket: open
[]] Insert square bracket: close (cannot be combined with other commands inside the square bracket!)
[=pluginname.fieldname.unit]
Insert field named "fieldname" from content plugin named "pluginname". "unit" may be an optional unit (if supported by that field), or a field formatter like YMD for date fields. You can use the [=?] Plugin button to insert plugin fields.
[=pluginname.fieldname.unit:4-7]
Same as above, but for partial strings (here: letters 4-7).
Supports the same ranges as the [N] field (see above), including leading spaces or zeroes.

 

2018년 9월 5일 수요일

개발 공부 관련 링크들


http://daankal.com/ | , 나를 위해 일해, 더 이상 남을 위해 일하지 않아.

https://www.youtube.com/watch?v=Z5rD3yQ96Lo | (1) 김도형: 파이썬 데이터 분석 3종 세트 - statsmodels, scikit-learn, theano - PyCon APAC 2016 - YouTube

https://wikidocs.net/4428 | 1) Zipline 설치 - 파이썬으로 배우는 알고리즘 트레이딩
http://freesugar.tistory.com/32?category=757582 | 구글로 공부하는 파이썬 - 1교시 (언어를 바라보는 방법) :: 자유로운설탕
https://wikidocs.net/28 | 05-1 클래스 - 점프 투 파이썬
https://wikidocs.net/4231 | 1) 계좌개설 및 모듈 설치 - 파이썬으로 배우는 알고리즘 트레이딩
http://cafe.naver.com/studentcoding# | 학생코딩 : 네이버 카페
http://cafe.naver.com/leftcording | 카페 가입하기,왼손코딩 팬클럽 겸 코딩카페 : 네이버 카페
https://b.luavis.kr/python/python-convention | Luavis' Dev Story - Python PEP 8

https://wikidocs.net/4582 | 2) 이동평균선 전략 백테스트 - 파이썬으로 배우는 알고리즘 트레이딩
https://steemit.com/kr/@axiomier/poloniex-hts-1-api | 나만의 poloniex HTS를 만들어 보자 (1) – API 살펴보기 — Steemit

2018년 8월 21일 화요일

리눅스 crontab 사용법

https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%EB%B0%98%EB%B3%B5_%EC%98%88%EC%95%BD%EC%9E%91%EC%97%85_cron,_crond,_crontab

2018년 8월 19일 일요일

Windows10 Home 도커(Docker) 설치

https://gwonsungjun.github.io/how%20to%20install/2018/01/28/DockerInstall/

내문서 위치 변경 레지스트리

내 문서 위치를 D:\으로 잘못 변경하여 다시 복구나 D:\내문서로 변경하려 했으나 오류가 발생되는 문제로 질문하셨습니다.
우선 탐색기에서 왼쪽에 라이브러리의 마우스 우 클릭 하여 "기본 라이브러리 복원"을 눌러보시기 바랍니다. 
동일 시 아래와 같이 내 문서폴더의 경로를 복구해 보시기 바랍니다.
  1. [윈도우 로고 +R]을 누르고 실행 창이 뜨면 regedit 입력 확인 합니다.
  2. 레지스트리 편집기가 뜨면 아래 위치로 이동 합니다.
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders 
  3. 오른쪽에 Personal 값을 두번 클릭하여 경로를 C:\Users\<내 계정>\Documents 으로 변경 합니다.
  4. ( 여기서 <내 계정>은 현재 사용중인 계정을 의미 합니다. "제어판-사용자 계정"에서 확인 합니다)
  5. C:\Users\<내 계정>\ 위치에 Documents 폴더를 생성 합니다.
  6. 내 문서 위치에 문제가 없는 다른 윈도우8.1 PC 에서 내 문서안에 desktop.ini 파일을 가져옵니다 (제어판-폴더 옵션-보기 탭-보호된 운영 체제 파일 숨기기 체크 해제/숨김 파일 및 폴더 표시로 체크 해야 파일이 보입니다) 
  7. 생성된 내 문서에 desktop.ini 파일을 붙여 넣기 합니다.
  8. C:\Users\<내 계정>\Documents 폴더의 마우스 우 클릭하여 "속성" 에서 사용자 지정에 아이콘 변경을 클릭하여 찾아보기 - C:\Windows\System32\imageres.dll 선택 후 아이콘을 확인 합니다.

2018년 8월 13일 월요일

anaconda 업그레이드

  1. 전체 설치 프로그램 다운로드con
    기존 Anaconda를 제거하면이 방법으로 업그레이드 문제가 발생할 가능성이 가장 적습니다. 아마 더 느릴 수도 있습니다. 2 개의 conda [.exe] 파일, 두 개의 Anaconda Prompt 바로 가기 등으로 끝나지 않도록 이전 Anaconda를 제거해야한다고 생각합니다. 잘못된 콘트라스트로 패키지를 설치하려고 시도하고 무슨 일이 일어나고 있는지 매우 혼란 스러울 수 있습니다. 
  2. conda update --all [이 명령으로 오류나서 고생했어요]
    그러면 Anaconda 설치 프로그램의 버전에 관계없이 환경의 모든 패키지가 최신 버전으로 업데이트됩니다. 이는 Anaconda 설치 프로그램의 패키지 버전과 다른 패키지 버전으로 끝나기 때문에 권장되지 않으며 호환되지 않는 패키지에 대한 오류 메시지가 나타날 수 있습니다. 
  3. conda update anaconda [권장]
    아나콘다라는 "메타 패키지"를 최신 버전으로 업데이트합니다. 이 패키지는 모든 패키지의 특정 버전에 종속되어 있으며 Anaconda (회사)는 이들 모두가 함께 작동 할 것이라는 확신을줍니다. 따라서 anaconda 패키지를 업데이트하면 모든 패키지가 최신 버전의 Anaconda 설치 프로그램에서 사용 된 버전으로 업데이트됩니다.

2018년 7월 26일 목요일

yum의 개념과 사용법

https://access.redhat.com/ko/solutions/82093

2018년 7월 25일 수요일

리눅스 서버 설정

OS 설치
   네트웍 설정

방화벽
   설정

웹서버
   설치
   설정

ssl
NginX - Configuring HTTPS servers
http://nginx.org/en/docs/http/configuring_https_servers.html

OpenSSL 로 ROOT CA 생성 및 SSL 인증서 발급
https://www.lesstif.com/pages/viewpage.action?pageId=6979614

wget 설치 (최소설치시 없음)
yum install wget

리눅스 참고 사이트

PuTTY 초기설정
https://extrememanual.net/7643

CentOS SSH
http://avilos.codes/system/linux/centos-ssh-installation/

Linux 방화벽 firewall
http://blog.plura.io/?p=4519

오라클 버추얼박스 ssh 접속 포트 포워딩 설정
https://zetawiki.com/wiki/VirtualBox_%EB%A6%AC%EB%88%85%EC%8A%A4_SSH_%EC%97%B0%EA%B2%B0_(NAT)

또다른 SSH 클라이언트
MobaXterm
xshell (상용:유료, 개인:무료)

2018년 7월 24일 화요일

ifconfig 대체

CentOS 7 에서 더이상 ifconfig 함께 설치 안됨

ifconfig 대체

ip addr
ip link
명령 사용

참조 : http://theeye.pe.kr/archives/2577

vi 기초 사용법

1. vi 모드

: 명령모드, 입력모드, 행 모드 3가지 모드로 구성

i) 명령 모드(command mode) : vi를 시작하여 들어가게 됩니다
방향키로 커서 이동, 명령어로 편집가능 합니다. (더 많은 명령어 다시...)

ii) 입력 모드(insert mode) : 명령모드에서 "i" 나 "a" 명령으로 입력 모드 진입
명령 모드 나오기 "ESC" ("i" 커서 위치부터, "a"는 커서 다음 부분부터)

iii) 행 모드(Last line mode) - 마지막행 모드는 명령모드에서 ":" (콜론) 을 입력하면 화면 맨 밑단에 :______ 입력하면 됩니다. wq(쓰고종료), q, q!(종료)등 입력

(참조 : http://blockdmask.tistory.com/25)

CentOS 버전 확인

grep . /etc/*-release

CentOS 리눅스에 nginx 웹서버 공식 저장소에서 설치

nginx를 yum으로 기본저장소에서 설치하려고 하면 예전 버젼으로 설치가 된다
다음은 nginx 공식 저장소를 통해 최신버젼으로 설치하는 방법

nginx의 docs를 보면 최근 안정 버젼으로 설치하는 방법이 있습니다.
(참조) http://nginx.org/en/linux_packages.html

/etc/yum.repos.d에 nginx.repo 파일을 만들어서 아래 내용을 넣습니다.

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

그리고 설치 명령을 내리면 된다...
sudo yum install nginx


???
$releasever 이 OS버전별로 자동으로 선택되는건지 가장 최신인건지는 확인해봐야겠다
(현재로서는 확인 못했다... 다 최신으로 설치했으므로)