Visit Our UNIX and Linux User Community

Top Forums Shell Programming and Scripting echo substitute sex up ur shell scriptz with secho Post 302341979 by zaxxon on Friday 7th of August 2009 05:31:17 AM
Old 08-07-2009
This is no publication platform for your C-programs. This is a board where people ask for help. Also when posting something like this, put it to the correct area like High Level Programming and not into Shell Scripting.
Also nobody asked for you "enhanced" echo.

Also start using CODE-tags if you post code, data or logs.

Thread closed!
Test Your Knowledge in Computers #179
Difficulty: Easy
The Apple I first went on sale in July 1976 and sold for $666 USD.
True or False?

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to write perl substitute command in shell scripts

How to write perl substitute command in shell script without invoking a perl script file seperately. for ex: shell script to relace IT with CSC in a file using perl substitute command. (3 Replies)
Discussion started by: param_it
3 Replies

2. Linux

Substitute for echo

Hi guys, Is there another function i could use to print out an output beside using echo? (1 Reply)
Discussion started by: hanyou.lin
1 Replies

3. UNIX for Dummies Questions & Answers

Substitute for echo

Hi guys, this there another function i can to print out a line besides echo? (2 Replies)
Discussion started by: hanyou.lin
2 Replies

4. UNIX for Advanced & Expert Users

secho substitute echo for your novelty secho.c

/*************************************************************************** * secho.c Copyright (C) 2009 by hashi NOVELTY WARE * * unix shell tool substitute for echo "sexy echo" * ... (2 Replies)
Discussion started by: hashi
2 Replies

5. Shell Programming and Scripting

Shell script: substitute value in text file

Hi gurus, I need help with shell script. I have various INSERT queries which inserts data into database. I want to insert 3rd column data into newline for one particular table. I have very time long txt file everytime and it have various INSERT/UPDATE queries but i have to done with it only one... (8 Replies)
Discussion started by: mirfan
8 Replies
escape(1)							Mail Avenger 0.8.3							 escape(1)

escape - escape shell special characters in a string SYNOPSIS
escape string DESCRIPTION
escape prepends a "" character to all shell special characters in string, making it safe to compose a shell command with the result. EXAMPLES
The following is a contrived example showing how one can unintentionally end up executing the contents of a string: $ var='; echo gotcha!' $ eval echo hi $var hi gotcha! $ Using escape, one can avoid executing the contents of $var: $ eval echo hi `escape "$var"` hi ; echo gotcha! $ A less contrived example is passing arguments to Mail Avenger bodytest commands containing possibly unsafe environment variables. For example, you might write a hypothetical reject_bcc script to reject mail not explicitly addressed to the recipient: #!/bin/sh formail -x to -x cc -x resent-to -x resent-cc | fgrep "$1" > /dev/null && exit 0 echo "<$1>.. address does not accept blind carbon copies" exit 100 To invoke this script, passing it the recipient address as an argument, you would need to put the following in your Mail Avenger rcpt script: bodytest reject_bcc `escape "$RECIPIENT"` SEE ALSO
avenger(1), The Mail Avenger home page: <>. BUGS
escape is designed for the Bourne shell, which is what Mail Avenger scripts use. escape might or might not work with other shells. AUTHOR
David Mazieres Mail Avenger 0.8.3 2012-04-05 escape(1)

Featured Tech Videos

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