![]() |
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 |
| setting width in echo statement | s123.radha | Shell Programming and Scripting | 4 | 05-12-2008 08:02 AM |
| echo statement issue | subin_bala | Shell Programming and Scripting | 3 | 04-24-2008 02:13 AM |
| Script does not execute Insert Statement | Amruta Pitkar | Shell Programming and Scripting | 4 | 08-24-2006 11:14 PM |
| echo statement | circleW | Shell Programming and Scripting | 3 | 10-03-2004 11:06 PM |
| awk command for INSERT statement | nattynatty | Shell Programming and Scripting | 4 | 05-10-2002 02:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
as a beginner you won't perhaps know this (and, besides, this is most often ignored by even the most veteran UN*Xers): 'echo' should not be used. Use "print" instead:
print - "abc\tdef" will do exactly what you want - regardless of what version of print you are using. bakunin |
|
||||
|
"print" is an internal ksh-command. AFAIK it is also an internal command in the bash.
I don't know about OpenBSD and I definitely don't know about Linux (honestly, IMHO Linux is to UNIX what Lego is to construction works), but as much as I know there are many flavours of Linux all with different sets of (mostly unsensible) aliases, therefore what you say may or may not be true for another of the seveteen dozens of major distribution. (Still, this disdain of mine may reflect only personal preferences and I don't intend to start a religious war (tm) here about Unix flavours or flavours of somewhat-Unix-like OSes.) I'd like to take back my obviously inflammatory remark in the general form i offered it and state instead that what i said is only true for real OSes with real shells, which have an internal "print" command. bakunin PS: i use AIX, HP-UX, SunOS and (most enjoyable) VMS. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|