Linux commands related to character code

This article

--As the title says. ――I only write what you can understand if you google. It's a personal memo.

Self-introduction

I mainly develop Java (Spring Boot) web applications.

command

Check for line breaks

od -c hoge.dat

Remove line breaks

tr -d '\n' < in.dat > out.dat

Check the character code

file -i hoge.txt

Display the corresponding character code list with iconv

iconv -l

Character code conversion with iconv

--Convert ASCII to EBCDIC

cat file_s.txt | iconv --from-code=ASCII-US --to-code=IBM930 > out.txt

reference

finally

that's all!

Recommended Posts

Linux commands related to character code
Linux commands to remember
Introduction to Linux Commands ~ LS-DYNA Edition ~
Linux commands
Linux commands
linux commands
Character code
Linux commands
Linux commands
Quick reference table: Linux disk related commands
Network Linux commands
python character code
Linux user commands
New Linux commands! !!
Basic LINUX commands
[Linux] Introduction to Linux
Various Linux commands
Typical Linux commands (7)
How to handle Linux commands well from Python
Beginners! Basic Linux commands and how to use them!
Frequently used Linux commands
Frequently used Linux commands
Rewrite Python2 code to Python3 (2to3)
About Python3 character code
New Linux commands! !! Part 2
What I did to get started with Linux commands
What to do if you are addicted to Windows character code
Commands and files to check the version of CentOS Linux
Studying Linux commands and frustration
[Windows] RDP to Windows via Linux
A super introduction to Linux
Part 1 Attempt to code mathematics (∈)
Tool to check code style
Command to generate QR code
Source code character code check script
Set VS Code to PyCharm.
2.x, 3.x character code of python
I tried to reintroduce Linux
Character code learned in Python
Convert python 3.x code to python 2.x
How to extract the desired character string from a line 4 commands
Addicted to character code by inserting and extracting data with SQLAlchemy
Get the IPv4 address assigned to the network interface in code (Linux)