skip to main
|
skip to sidebar
the open device
reviews, tips and tricks, opinions about open and less open technology
Wednesday, 26 January 2011
How to symlink all files in a directory
It seems that a simple ln -s /dir/* doesn't work, so:
for f in $(ls -d /base/*); do ln -s $f /target; done && ls -al /target
From
commandlinefu.com
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2013
(1)
►
January
(1)
►
2012
(3)
►
November
(1)
►
October
(1)
►
May
(1)
▼
2011
(5)
►
August
(1)
►
April
(1)
►
February
(2)
▼
January
(1)
How to symlink all files in a directory
►
2010
(1)
►
May
(1)
►
2008
(7)
►
May
(6)
►
February
(1)
►
2007
(20)
►
December
(2)
►
November
(1)
►
October
(1)
►
September
(1)
►
August
(2)
►
July
(2)
►
June
(2)
►
May
(1)
►
March
(8)
About Me
m. s.
View my complete profile
Add to Technorati Favorites
No comments:
Post a Comment