I want to mass rename hundred of filenames like filename 001.jpg to filename-001.jpg … … … filename 099.jpg to filename-099.jpg I use this command to rename all in few seconds in my MacBook Pro. I think it is fine to run in any linux. for f in *\ *; do mv “$f” “${f// /-}”; done
Tag Archives: linux
command c expects followed by text error in Mac
You received error from the sed command in Mac, because the argument in mac is different. If you type in Mac terminal, you may receive error like this Justins-MacBook-Pro:2 juzhax$ sed -i ‘s/old_text/new_text/g’ example.txt sed: 1: “config.php”: command c expects \ followed by text The first argument should be the extension of the backup file. Continue reading “command c expects followed by text error in Mac”
Hacker’s Secret 100 Secret Techniques Revealed
One of the nice book that suitable for Hacker, but too bad it is in Japanese version. Wish someone will translate to English version in future. You can find the author from here Satoru Takabayashi, Fumitoshi Ukai, Yusuke Sato, Shinichiro Hamaji, Kazuyuki Shudo Chapter 1. Introduction 1. Introduction to Binary Hacks 2. Terminology of Binary Hacks 3. Using “file” to Continue reading “Hacker’s Secret 100 Secret Techniques Revealed”
Set Static IP for Raspberry Pi
vi /etc/network/interfaces modify iface eth0 inet dhcp to iface eth0 inet static Then add this below address 192.168.1.200 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1
The first post on Juzhax.com
The first post on Juzhax.com My previous personal blog, Justin.my isn’t a personal blog anymore. It is most like a game walkthrough, solution sites more than a personal blog. And there is no place to let me share some technology related post there. What am I going to share in here I would like to Continue reading “The first post on Juzhax.com”
