Linux2019. 8. 16. 16:30

$ fstrim / -v
fstrim: /: FITRIM ioctl failed: 명령을 허용하지 않음

$ sudo fstrim / -v
/: 160.4 GiB (172228952064 bytes) trimmed

 

[링크 : https://blog.naver.com/revuahn/221056734236]

'Linux' 카테고리의 다른 글

awk 구분자 탭으로 인식시키기  (0) 2019.09.02
awk 특정 열 제외하기  (0) 2019.09.02
jq - json in linux command line  (0) 2019.08.16
awk NR, NF  (0) 2019.08.12
smart trip temperature?  (0) 2019.08.05
Posted by 구차니

정규표현식으로 원하는걸 잘라내려고 했는데

regexp_match 는 {}로 쌓버려서 귀찮아서 다른 방법 찾음

 

[링크 : https://codeday.me/ko/qa/20190414/329095.html]

Posted by 구차니

 

order by cast(number_string as bigint)

[링크 : https://beone.tistory.com/272]

Posted by 구차니

테이블 상속하니..

하위에서 값을 넣으니 부모에게도 그 값이 들어가는데

sequence는 안건드리니까 부모쪽 sequence는 증가되지 않는다.

 

아무튼.. pgadmin에서 상속하니 테이블 형상이 끌려와서

그냥 상속처럼 테이블 모양 끌어온다는 건가 해서 썼는데 그게 아니라 깜놀 -_-

 

[링크 : https://corekms.tistory.com/entry/table-inheritance상속]

Posted by 구차니

말이 복잡하네

insert into table select field from table

시에 insert 값으로 특정 상수를 넣는 방법인데..

해보니 걍.. insert into 안에 'fixed string' 식으로 항목하나 넣어주면 된다.

 

 

[링크 : https://stackoverflow.com/questions/30809384/combining-insert-select-with-constants/30809406]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

sql 문자를 숫자로 정렬하기  (0) 2019.08.16
postgresql 상속  (0) 2019.08.16
pgadmin 초기 시작시 브라우저 선택  (0) 2019.08.15
postgres sequence - auto increment  (0) 2019.08.13
postgresql 변수 타입  (0) 2019.08.12
Posted by 구차니
Linux2019. 8. 16. 00:09

json 을 커맨드 라인에서 처리할 수 있게 해주는 유틸

 

-r은 raw로 출력

oncotree 에서 api로 받은것 중에서 code 영역만 추출

 

jq -r '.[].code' tumorTypes > code

[링크 : https://blog.outsider.ne.kr/1202]

 

+

sudo apt-get install jq

[링크 : https://stedolan.github.io/jq/download/]

[링크 : https://stedolan.github.io/jq/]

'Linux' 카테고리의 다른 글

awk 특정 열 제외하기  (0) 2019.09.02
linux 수동 trim  (0) 2019.08.16
awk NR, NF  (0) 2019.08.12
smart trip temperature?  (0) 2019.08.05
uniq  (0) 2019.07.30
Posted by 구차니