Search Results

Search: Posts Made By: amir_yosha
5,752
Posted By amir_yosha
it still does not work .....
#!/bin/ksh
file_name=$1
old_template=$2
new_template=$3

# Loop through every file like this
for file in $file_name
do
cat $file | sed "s/$old_template/$new_template/g" > $file.new
#do a...
5,752
Posted By amir_yosha
my script does no work .....
#!/bin/ksh
file_name=$1
old_templet=$2
new_templet=$3

# Loop through every file like this
for file in $file_name
do
cat $file | sed "s/$new_template/$old_template/g" > $file.new
#do a...
5,752
Posted By amir_yosha
please, ]i need more help ..................
I change my script, but it does not work ......

#!/bin/ksh
file_name=$1
old_templet=$2
new_templet=$3

# Loop through every file like this
for file in file_name
do
cat $file | sed...
5,752
Posted By amir_yosha
improving my script (find & replace)
Hi all,
I have a script that scan files, find old templet and replace it with new one.

#!/bin/ksh
file_name=$1
old_templet=$2
new_templet=$3

# Loop through every file like this
for file...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy