Welcome to new things

[Technical] [Electronic work] [Gadget] [Game] memo writing

Shell Script

Using Return Values in Shell Script Functions

I was using shell scripts and the scripts were getting long and hard to read, so I tried to summarize them with functions. However, the return values of shell script functions are different from those of functions in other programming lang…

How to encode and decode URLs with shell scripts

This is a memo on how to encode and decode URLs with shell scripts. You can find many ways to do this by searching. https://stackoverflow.com/questions/296536/how-to-urlencode-data-for-curl-command At first, we tried using nkf for both enc…

jq usage memo

Shell scripts use the jq command to retrieve data from JSON. I often forget how to use it, so here is a memo for my own use. Basic Basic operation "takes input from standard input, filters it, and outputs it to standard output." . represen…

I'm going to try to make the Linux shell switch in tabs like Chrome.

When I usually work with Linux, I have multiple terminals up and running. I'm not particularly inconvenienced by that, but I was looking into the possibility of launching multiple shells in a single CUI terminal and switching between them …

Using peco/fzf has made the selection process in the Linux shell dramatically easier.

I was looking for some kind of tool to help me select clusters for Kubernetes, and I saw a tool called peco. https://qiita.com/sonots/items/f82912367693d717ff06 PECO is an independent tool that has nothing to do with Kubernetes, but when I…

Memo on how to use Graph::Easy to draw diagrams with only text

When I try to draw diagrams in PowerPoint, I have a hard time deciding on the layout, size, etc., and I have a tendency to not be able to draw quickly. I thought that it would be better to have a rigidly restricted system, so I considered …

How to execute commands in parallel in shell scripts

Batch processing of data recorded in each file is sometimes performed by shell scripts. If there were a large number of files, it could be very time consuming to process them sequentially, waiting for one file to finish before processing t…