10 commands that incredibly improve your productivity

Calendar Clock iconCalendar Clock icon

commands

Table of contents

# Replace text occurrences inplace among files of a directory recursively.

grep -Irl 'http' content/ | xargs sed -i "" "s/http/https/g"

This command searches the all files that include the text 'http' and replace the all occurrences with 'https' inplace.

# Search files according to patterns recursively.

find . -name *.md

This command lists the all names of files whose extension is 'md' in current directory recursively.

# Rename multiple files at once

FILES=`find content -name "*.vue"`
for f in $FILES; do
    mv -- "$f" "${f%.vue}.md"
done

This command replace the extensions of the all files whose extension is 'vue' in content directory with 'md'.


Remote freelancer. A web and mobile application enginner.
Traveling around the world based on East Asia.
I'm looking forward to your job offers from all over the world!

Offer jobs or contact me!

Comments