|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help me with Echo Command
Hi All I have the big statement which needs to be appended to the file MANUALLY without opening the file. So, i tried with echo command Code:
echo "[18/May/2009:12:08:01] failure ( 4446): for host xx.xx.xx.xxx trying to GET /index.html, wl-proxy reports: exception occurred for backend host 'xx.xx.xxx.xx/12210/12210': 'CONNECTION_REFUSED [os error=150, line 1687 of URL.cpp]: Error connecting to host xx.xx.xxx.xx:12210'" >> errors Since the error line is too big, it is breaking and not adding it into the file. Please suggest me the some other method. Thanks in Advance Kalaiela
Last edited by Scrutinizer; 06-11-2012 at 10:09 AM.. Reason: code tags |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
What OS and shell?
This works fine for me on Arch Linux using the Bash Shell and Red Hat using the Bash Shell. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
I'm quite afraid you can't alter the file without opening it unless something else has already opened it...
|
|
#4
|
|||
|
|||
|
Quote:
What Operating System and version are you running? What Shell do you use? |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Hi All, I am using HP-UX machine with sh shell.
Thanks for your replies... ![]() |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
Does it do the same with a diffent shell, for example
/usr/dt/bin/dtksh or bash if that is installed..
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Hi Scrutinizer
I have no idea about how it works other than sh shell. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Echo Command Help | ab52 | Shell Programming and Scripting | 5 | 02-20-2012 07:44 PM |
| What does following echo command do? | akash_mahakode | Shell Programming and Scripting | 1 | 11-16-2009 03:56 AM |
| Command substitution within an echo | ewoods | UNIX for Dummies Questions & Answers | 3 | 07-23-2009 04:14 AM |
| Echo command with $$ $# $@ | howdy | UNIX for Dummies Questions & Answers | 3 | 11-18-2008 03:32 PM |
| Help in sorting echo command | ahjiefreak | Shell Programming and Scripting | 3 | 03-28-2008 06:08 AM |
|
|