Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbb
tp_rocks
Commits
1210c9f0
Commit
1210c9f0
authored
Jan 28, 2016
by
remy.d1
Browse files
title href sed fixed
parent
0dddd80b
Changes
1
Hide whitespace changes
Inline
Side-by-side
correct_title_href.sh
View file @
1210c9f0
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
if
[
-d
$1
]
;
then
if
[
-d
$1
]
;
then
echo
"replacing href link with kimura website"
echo
"replacing href link with kimura website"
title
=
`
head
-1
README.md |
cut
-d
"#"
-f2
|sed
"s|^ ||g"
`
title
=
`
head
-1
README.md |
cut
-d
"#"
-f2
|sed
"s|^ ||g"
`
find
$1
-type
f
-print0
| xargs
-0
sed
-i
"s|<a href=
\"
./
\"
>
$title
|<a href=
\"
http://cbi.isem.univ-montp2.fr
\"
target=
\"
_blank
\"
>
$title
|g"
find
$1
-type
f
-regex
".*
\.\(
css
\|
html
\)
"
-print0
| xargs
-0
sed
-i
"s|<a href=
\"
./
\"
>
$title
|<a href=
\"
http://cbi.isem.univ-montp2.fr
\"
target=
\"
_blank
\"
>
$title
|g"
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment