Blank as variable/output when run from command line
When I run this:
It is totally blank. However, when I just run it from the terminal:
I get the real output I am looking for, the URL of the comic. This doesn't happen with any other URL I try to grab.
Oh and this is bash on OSX. and sh I think.
Last edited by killer54291; 01-14-2011 at 11:23 PM..
This is my list of sed commands: can anyone tell me where im going wrong. The script works on a file called data which contains 6 student id's and there answers for 6 questions.
!/bin/sh
sed -e 's/*//g' \ #replace * with nothing
-e s/ /X/g' \ #replacing empty space with X
-e... (2 Replies)
I am testing a ksh script for email.
In the subject/content of the mail there is some dynamic variables like date and charges.
However these variables occupied the entire line erase other in that particular line
For e.g. there is a mail message:
This mail is intent...
Your total... (2 Replies)
Hi Guys,
I have a file in which each set of records are separated by two blank line. I want to replace it with a single blank line.
Can you guys help me out?
Regards,
Magesh (9 Replies)
Hi
Is it possible to do the following in a single command
/usr/xpg4/bin/sed -e '/rows selected/d' /aemu/CALLAUTO/callauto.txt > /aemu/CALLAUTO/callautonew.txt
/usr/xpg4/bin/sed -e '/^$/d' /aemu/CALLAUTO/callautonew.txt > /aemu/CALLAUTO/callauto_new.txt
exit (1 Reply)
Hello
I am using unix CLI commands for the Synergy CM software. The command basically searches for a folder ID and returns the names of the projects the folder sits in. The result is assigned to a variable:
FIND_USE=`ccm folder -fu -u -f "%name"-"%version" ${FOLDER_ID}`
When the command... (6 Replies)
Hi,
I am trying to do the following thing
var='date'
$var
Above command substitutes date for and in turn runs the date command and i am getting the todays date value.
I am trying to do the same thing as following, but facing some problems,
unique_host_pro="sed -e ' /#/d'... (3 Replies)
My script ssh's to another server and gathers information then process them. The problem is that the output of a command has an unwanted "blank lines".
...
ssh user1@${server1} /usr/bin/ls -l /tmp/file1 | awk '{print $5}' > ${DATAFILE}
...
$ cat ${DATAFILE}
123456789 (There's a blank... (7 Replies)
Hi. I'm trying to write a script that reads a line on a file and runs a different command for a different line output.
For example, if it finds the word "Kuku" on the line it sends mail to Kuku@kuku.com. Otherwise, it sends mail to Lulu@lulu.com.
TIA. (2 Replies)
Hi,
I am working on a script where I am adding adding colors to few of the info in the output.
Now , after that is done , I see colour codes in log files which I don't want to see.:mad::mad::mad::mad:
So , I tried using sed command in script as below which gives me o/p (new.log) as blank file... (7 Replies)
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
LEARN ABOUT DEBIAN
amcrypt-ossl
AMCRYPT-OSSL(8) System Administration Commands AMCRYPT-OSSL(8)NAME
amcrypt-ossl - crypt program for Amanda symmetric data encryption using OpenSSL
SYNOPSIS
amcrypt-ossl [-d]
DESCRIPTION
amcrypt-ossl uses OpenSSL to encrypt and decrypt data. OpenSSL is available from www.openssl.org. OpenSSL offers a wide variety of cipher
choices ( amcrypt-ossl defaults to 256-bit AES) and can use hardware cryptographic accelerators on several platforms.
amcrypt-ossl will search for the OpenSSL program in the following directories:
/bin:/usr/bin:/usr/local/bin:/usr/ssl/bin:/usr/local/ssl/bin.
PASSPHRASE MANAGEMENT
amcrypt-ossl uses the same pass phrase to encrypt and decrypt data. It is very important to store and protect the pass phrase properly.
Encrypted backup data can only be recovered with the correct passphrase.
OpenSSL's key derivation routines use a salt to guard against dictionary attacks on the pass phrase; still it is important to pick a pass
phrase that is hard to guess. The Diceware method (see www.diceware.com) can be used to create passphrases that are difficult to guess and
easy to remember.
FILES
/var/lib/amanda/.am_passphrase
File containing the pass phrase. It should not be readable by any user other than the Amanda user.
SEE ALSO amanda(8), amanda.conf(5), openssl(1), amcrypt-ossl-asym(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Kevin Till <kevin.till@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
NOTES
1. www.openssl.org
http://www.openssl.org/
2. www.diceware.com
http://www.diceware.com/
Amanda 3.3.1 02/21/2012 AMCRYPT-OSSL(8)