[SOLVED] What does '/m64=/' mean in the sed command?
by NuttyJamie from LinuxQuestions.org on (#5CSW7)
Greetings folks!:hattip:
I saw this type of sed command while following the LinuxFromScratch book's instructions.
First, the book says:
Quote:
And the code is:
Code:case $(uname -m) in
x86_64)
sed -e '/m64=/s/lib64/lib/' \
-i.orig gcc/config/i386/t-linux64
;;
esacI knew sed's replace command format, such as s/<source text>/<replace text>/gc, and so I know what this whole code ends up doing, but I've never seen the middle part of it before.
Code:sed -e '/m64=/s/lib64/lib/' \ What exactly does the /m64=/ do?
I searched through several sed tutorials and found nothing similar. :(


I saw this type of sed command while following the LinuxFromScratch book's instructions.
First, the book says:
Quote:
If building on x86_64, change the default directory name for 64-bit libraries to lib": |
Code:case $(uname -m) in
x86_64)
sed -e '/m64=/s/lib64/lib/' \
-i.orig gcc/config/i386/t-linux64
;;
esacI knew sed's replace command format, such as s/<source text>/<replace text>/gc, and so I know what this whole code ends up doing, but I've never seen the middle part of it before.
Code:sed -e '/m64=/s/lib64/lib/' \ What exactly does the /m64=/ do?
I searched through several sed tutorials and found nothing similar. :(