Giter Site home page Giter Site logo

range_renban_file's Introduction

何ができる?

単独のディレクトリ(フォルダ)を作って、その中にrange関数で、大量の連番ファイルを生成する。

  • 初期値は、100ファイル(拡張子は.txt)
  • 連番の桁数は、zfill(5)の数字を変更する(初期値:5桁)

コメントアウト[#]で切替する。(空ファイル or 中身の入力)

使い方は自由。(個人的にはメモ書きをストックで検索をすることが多い)

複数ファイルから文字列を一括検索

find ./ -type f -print | xargs grep -l 'もじれつ'

複数ファイルから文字列を一括置換

find ./ -type f | xargs sed -i 's;もじれつ;へんかん;g'

pythonプログラムを実行

python3 test_.py

環境

  • パソコン: X230(Lenovo ThinkPad)
  • OS: Linux Mint 20.3(Xfce)
  • Python 3.8.10

range_renban_file's People

Contributors

hikagestyle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.