Diewuxi

Belive tomorrow will be better, love science and technology, support communication and understanding, always ready for thought turn.

Blog / engineering_technology / computer / software / posix_program / general / Linux 文本处理常用情况例子汇总

Blog


Article^ Parent

Linux 文本处理常用情况例子汇总


Date: 2018-10-29 00:00:00
Description: Linux 文本处理常见情况例子汇总。
Keywords: 文本处理, Sed, Vim
Category: engineering_technology/computer/software/posix_program/general
Tag: text-process
Link: https://www.diewuxi.com/blog/article/96.html

Changelog

* 2021-12-06
    * Add: Asemblly language source code format
* 2018-10-29
    * Done
                        

Get certain lines

head -n 20 file.txt
                        

Get full script name current excuted

"$(realpath ${0})"
                        

Code format

Asemblly language source code format

  • In Vim

    :% s/ $//g // Remove suffix blank :% s/^ *//g // Remove prefix blank :% s/^(..)$/ \1/g // Indent non-empty line :% s/^ ([^ ;:][^ :]:)/\1/g // Anti-indent non-commented label line

Last modified: 2021-12-06

Comments [0]

There is no comments now.

Write comment(* is necessary, and email is not shown to public)


Diewuxi 2017--2024