Search Results

Search: Posts Made By: Lycopene
6,356
Posted By Lycopene
Thank you ^_^ problem solved and assignment...
Thank you ^_^ problem solved and assignment passed. Again, thank you. You were very helpful.
6,356
Posted By Lycopene
I hadn't even realized that I was using FILE and...
I hadn't even realized that I was using FILE and $file. My apologies. So, this is my code at present:

#!/bin/sh

p1="$1"
shift
p2="$1"
shift

for FILE in "$@"
do
echo $p1
...
6,356
Posted By Lycopene
Using for FILE in "$@" I get the error ...
Using
for FILE in "$@"

I get the error
sed can't read : No such file or directory
mv: cannot move `temp.out' to `': No such file or directory


What I have with your recommended changes -...
6,356
Posted By Lycopene
Okay, I changed the code to #!/bin/sh ...
Okay, I changed the code to
#!/bin/sh

p1="$1"
shift
p2="$1"
shift

for file in *
do
echo $p1
echo $p2

sed "s/$p1/$p2/g" $file >temp.out
mv temp.out $file...
1,099
Posted By Lycopene
"You Have Received a Reminder"
I just posted a question in regards to a homework assignment in the homework forums, and then shortly received a PM with the title "You have received a reminder from the The UNIX and Linux Forums"....
6,356
Posted By Lycopene
[Solved] Shell Script to sed with Multiple Files
I am not sure what I am doing wrong here. The code should work fine. I have been making small changes insuring that each new bit works. Now running my sed through multiple files I am getting...
Showing results 1 to 6 of 6

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