vi test
linux
unix
minix
freebsd
openbsd
netbsd
macos
----------------------------
vi test.sh
#!/bin/sh
var1=`cat test`
echo $var1
for value in $var1
do
touch $value
done
----------------------------
result
$ ls -ltr
-rw-rw-r-- 1 codehexa codehexa 80 2018-07-11 09:47 test.sh
-rw-rw-r-- 1 codehexa codehexa47 2018-07-11 16:47 test
-rw-rw-r-- 1 codehexa codehexa 0 2018-07-11 16:47 linux
-rw-rw-r-- 1 codehexa codehexa 0 2018-07-11 16:47 unix
-rw-rw-r-- 1 codehexa codehexa 0 2018-07-11 16:47 minix
-rw-rw-r-- 1 codehexa codehexa 0 2018-07-11 16:47 freebsd
-rw-rw-r-- 1 codehexa codehexa 0 2018-07-11 16:47 openbsd
-rw-rw-r-- 1 codehexa codehexa 0 2018-07-11 16:47 netbsd
-rw-rw-r-- 1 codehexa codehexa 0 2018-07-11 16:47 macos
2018년 7월 11일 수요일
피드 구독하기:
댓글 (Atom)
리눅스 문자와숫자 조합의 파일이름 정렬( Sort alphanumeric filenames in Linux )
아래 처럼 문자와 숫자가 섞여 있는 파일에 대해서 정렬이 제대로 되지 않을 때 When sorting is not done properly for files with mixed letters and numbers as shown below [codeh...
-
우선 메뉴에서 Tools아래 Orange Options를 선택 후 Common의 Session에서 Commit automatically after every statement를 체크하면 Autocommit is On으로 변경됨 ...
-
Install Python certificates! (A common issue on macOS.) Open these files: Install Certificates.command Update Shell Profile.command ...
-
아래 내용으로 demobld.sql 파일을 생성한다. -- -- Copyright (c) Oracle Corporation 1988, 1999. All Rights Reserved. -- -- NAME -- demobld.sql -- ...
댓글 없음:
댓글 쓰기