Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
proj1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
laila.alabdullah
proj1
Commits
4ec32ee5
Commit
4ec32ee5
authored
Jun 30, 2024
by
laila.alabdullah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add replace_old_new.sh
parent
ffcb89d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
replace_old_new.sh
replace_old_new.sh
+8
-0
No files found.
replace_old_new.sh
0 → 100755
View file @
4ec32ee5
#!/bin/bash
#replace old word in the txt files with a new word
old
=
$1
new
=
$2
echo
"Enter the directory that you want to be the starting point : "
read dir
cd
$dir
find
-name
"*.txt"
-exec
sed
-i
"s/
$old
/
$new
/g"
{}
\;
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