Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.68 KB

wsl2.md

File metadata and controls

53 lines (32 loc) · 1.68 KB

효율성이 배가되는 WSL2 가이드북

title

title

bash-git-prompt: An informative and fancy bash prompt for Git users

title

jq 사용

title

❯ echo '[1,2,"testing"]' | jq

title

❯ cat ./wsl-book.json | jq ".parts[].name"

title

❯ cat/wsl-book.json | jq ".title"

❯ BOOK_TITLE=$(cat /wsl-book.json | jq ".title" -r)

❯ cat ./wsl-book.json | jq ".parts"

❯ cat ./wsl-book.json | jq ".parts[0].name"

title

❯ cat ./wsl-book.json | jq ".parts[].name"

❯ cat ./wsl-book.json | jq '.parts[] | {name}'

title

❯ cat ./wsl-book.json | jq '.parts[] | {name: .name, chapter_count: .chapters | length}'

❯ cat ./wsl-book.json | jq '[.parts[] | {name: .name, chapters: [.chapters[] | .title]}]'

파워셸과 JSON을 엮어서 일하기

title

Install PowerShell on Linux - PowerShell | Microsoft Learn