Search Results

Search: Posts Made By: donflamenco
83,330
Posted By donflamenco
Works Great! Thanks again, now I know... and...
Works Great! Thanks again, now I know... and knowing is half the battle.
83,330
Posted By donflamenco
:p Duh Ok, yes I am not cutting and pasting,...
:p Duh

Ok, yes I am not cutting and pasting, I have am on my PC now but the code is on my UNIX box. As I said before, I only write these things when I need them so I had no idea that ' is...
83,330
Posted By donflamenco
ZB- Sorry I didn't mean to imply you didn't...
ZB-
Sorry I didn't mean to imply you didn't know what you're talking about, but I did try it and it is not working as expected. If I do an echo $j it will spit out
echo "$i" | sed "s/$1/$2/"

Is...
83,330
Posted By donflamenco
zazzybob: That will set j to be `echo "$i" |...
zazzybob:
That will set j to be `echo "$i" | sed "s/$1/$2/"` not actually execute the command.
When I run my script it wants to rename this_file001.txt to echo "$i" | sed "s/$1/$2/"
83,330
Posted By donflamenco
I'm a tyro when it comes to cshells - all I'm...
I'm a tyro when it comes to cshells - all I'm getting is the output "Variable Syntax" to the command line. Is there a way to get more info from csh?
83,330
Posted By donflamenco
Still giving me a "Variable Syntax"...
Still giving me a "Variable Syntax" Error.
83,330
Posted By donflamenco
Passing output of sed/echo to a variable
I understand how to use a variable in a sed command, but for the life of me I can't get the output into a variable.
I'm making a general function to replace part of a filename with a different...
Showing results 1 to 7 of 7

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