A
A
Andrey2015-09-12 22:40:04
linux
Andrey, 2015-09-12 22:40:04

How to bulk create symbolic links in Linux?

Hello!
Tell me how you can create symbolic links, in the current directory, to all files corresponding to the mask.
For example, you want something like this:
ln -s *.htm *.php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AVKor, 2015-09-12
@kav4ik

for i in *.html; do ln -s $i ${i%%.html}.php; done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question