리눅스 실제 사용 팁(105)
-
[리눅스] AWK 에서 셸 명령 호출하기
작성일 : 2017. 1. 24 awk -F\| '{system("mv "$1" "$2)}' ddd.txt
2023.08.01 -
[리눅스] AWK 에서 substring, index
작성일 : 2017. 2. 17 ls -l devapps/ | awk '{print substr($9,0, index($9,"-1.0.jar")-1)}'
2023.08.01 -
awk
작성일 : 2016. 10. 23 Snippet 모음. 제대로 된 기사는 문제가 해결된 후에^^ 이틀동안 마누라의 눈치를 보며 awk 문법을 알아내느라 고심 중.... Array 길이 출력하기) echo "hello world" | awk '{n=split($0, array, " ")} END{print n }' --- [설명] n 에 길이가 들어간다. http://www.jonathanhui.com/unix-linux-awk-command http://www.thegeekstuff.com/2010/02/awk-conditional-statements/ https://www.chemie.fu-berlin.de/chemnet/use/info/gawk/gawk_13.html http://stackoverfl..
2023.08.01 -
Dockerfile
작성일 : 2018. 8. 20 Dockerfile 내용 : FROM debian:stable-slim MAINTAINER jh.han@mygenomebox.com RUN apt-get -y update COPY . /opt WORKDIR /opt RUN ln -s zulu8.31.0.1-jdk8.0.181-linux_x64 jdk "docker build" requires exactly 1 argument. See 'docker build --help'. Usage: docker build [OPTIONS] PATH | URL | - [flags] Build an image from a Dockerfile [mgblauncher@MGB-v2-FTP01 build]$ docker build --help ..
2023.08.01 -
[리눅스/윈도] awk : 필드 1개만 제외하고 전체 줄 출력하기
AWK 를 활용하면서도 말끔히 해결되지 못하고 기억 속 저편에 남아 있던 내 숙제. 다음과 같은 데이터 목록이 있다. $ history | grep sed > sed_grp $ cat sed_grp --- [실행결과] 369 sed -i '/.*노브랜드.*/s/$/ FOOD/g' PAY_LIST.txt 370 sed -i '/.*GS25.*/s/$/ CVS/g' PAY_LIST.txt 371 sed -i '/.*CU.*/s/$/ CVS/g' PAY_LIST.txt 372 sed -i '/.*이마트24.*/s/$/ CVS/g' PAY_LIST.txt 373 sed -i '/.*E-MART24.*/s/$/ CVS/g' PAY_LIST.txt 381 sed -i '/.*시장.*/s/$/ FOOD/g' PAY_..
2023.07.24 -
gnome-shell-extension-manager
현재 사용 중인 데비안 배포 버전 : ~$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" 그놈 데스크탑 : 43.4 gnome-tweaks 실행 시 [모양새] 에서 쉘(사용자 테마)를 선택할 수 없는 경우가 있다. 다음은 gnome-shell-e..
2023.07.03