![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Replacing lines in text files | Jonny2Vests | Shell Programming and Scripting | 7 | 01-28-2008 08:29 PM |
| help required for replacing text in vi | Chandu2u | Shell Programming and Scripting | 6 | 01-26-2008 11:12 AM |
| replacing a nul field with text | DarkHound | Shell Programming and Scripting | 3 | 09-04-2007 02:34 PM |
| replacing text | ajaya | Shell Programming and Scripting | 2 | 04-12-2006 12:31 PM |
| replacing text in an ascii doc | cubs0729 | Shell Programming and Scripting | 6 | 09-29-2005 03:05 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Replacing text
I was using the following code to replace the path names and it works when it is
Code:
echo "$PWD/$f" | sed -e 's/^.*chris\.domain\.com/chris.domain.com/' However I tried to incorporate a variable echo "$PWD/$f" | sed -e 's/^.*$account\.domain\.com/$account.domain.com/' And now the output is not working. Can anyone help. Chris |
|
||||
|
Problems with find command and time variable
I am using the following
Code:
echo How many hours? echo hours let t=$hours*60 find . -type f -mmin "$t" > holder Chris |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|