$ tee --help
Usage: tee [OPTION]... [FILE]...
Copy standard input to each FILE, and also to standard output.

  -a, --append              append to the given FILEs, do not overwrite
  -i, --ignore-interrupts   ignore interrupt signals
  -p                        diagnose errors writing to non pipes
      --output-error[=MODE]   set behavior on write error.  See MODE below
      --help     display this help and exit
      --version  output version information and exit

MODE determines behavior with write errors on the outputs:
  'warn'         diagnose errors writing to any output
  'warn-nopipe'  diagnose errors writing to any output not a pipe
  'exit'         exit on error writing to any output
  'exit-nopipe'  exit on error writing to any output not a pipe
The default MODE for the -p option is 'warn-nopipe'.
The default operation when --output-error is not specified, is to
exit immediately on error writing to a pipe, and diagnose errors
writing to non pipe outputs.

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>
Full documentation <https://www.gnu.org/software/coreutils/tee>
or available locally via: info '(coreutils) tee invocation'


unix, uniq -c

카테고리 없음 2021. 5. 25. 19:11

$ cat tmp
a
bb
bb
ccc
ccc
ccc

$ uniq -c tmp
      1 a
      2 bb
      3 ccc



C:\jee-2020-092\eclipse>eclipse -clearPersistedState


Entity 쪽 컬럼에 값이 유일해질 수 있도록 컬럼에 @Id 추가

The JPA Id does not always have to match the database table primary key constraint, nor is a primary key or a unique constraint required.

https://en.wikibooks.org/wiki/Java_Persistence/Identity_and_Sequencing#No_Primary_Key


JPA crud

카테고리 없음 2021. 5. 21. 10:08


liunx, . meaning

2021. 5. 12. 18:40

보호되어 있는 글입니다. 내용을 보시려면 비밀번호를 입력하세요.


SELECT 'a' = 'A'; -- 1
SELECT BINARY 'a' = 'A'; -- 0

(dev.mysql.com/doc/refman/5.7/en/cast-functions.html#operator_binary)


linux, date

카테고리 없음 2021. 4. 30. 10:21

date -d '10 hour ago' '+%Y-%m-%d %H'


:g/^$/d