10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Below is the script that i'm using but i'm getting an error,
echo -n "Read the letter >(enter a or b or c) "
read letter
if || || ;
then
echo "unacceptable character"
else
echo "Character Accepted"
fi
if the character entered is not equal to a or b or c, the script should... (6 Replies)
Discussion started by: web2moha
6 Replies
2. Shell Programming and Scripting
What would cause a script to work under one user account and not another? Here's an example of what I'm referring to.
Here's a simple script. Let's put it in a file called “thescript”.
#! /bin/bash
alias a='echo hello world'
a
Here are the results when this script is executed logged in... (3 Replies)
Discussion started by: sszd
3 Replies
3. Shell Programming and Scripting
I am working on AIX 6.1 issuing #!/bin/sh at the beginning of the script.
I don't understand why $1 is not working as expected. I expect it to hold the value for the first argument coming from the command line consistently - and it is not.
At the beginning of the script starting I do this:... (4 Replies)
Discussion started by: Feliz
4 Replies
4. Shell Programming and Scripting
Hey I have a problem with my script.
I writing a script which can depend whether you want to make a file or a directory.
I only give the code where you can find the problem.
My loop doesn't stop and I don't know why and
when i echo my second parameter , he echoes nothing :s
Thnx
... (1 Reply)
Discussion started by: Eclecticaa
1 Replies
5. Shell Programming and Scripting
I have the below script in file read_file.ksh if ] || ]
then
echo "Required one input file"
echo "Enter a file to get char count:"
read $FILE_NAME
if ]
then
echo "valid file"
else
echo "Not a valid file."
fi
When run as read_file.ksh detail.csv or... (9 Replies)
Discussion started by: michaelrozar17
9 Replies
6. Linux
I installed PCI Card HP SC44Ge - SAS1068E
on my linux CentOS 5.4
is there a way to find out if the PCI is properly installed and recognized by linux.
lspci is enough?
just to add that PCI card is connected to a tape...
also how can I find out driver and firmware version?
thanks a... (1 Reply)
Discussion started by: karlochacon
1 Replies
7. Solaris
Good evening,
I am fairly (re)new to Solaris 10. In fact I was even quite good at it, but that was about 10 years ago, so now I am back to beginner status :)
I installed a new machine with an internal 16port RAID attached to an Areca 1260 controller. Also attached is an external SCSI-Raid. ... (7 Replies)
Discussion started by: PatrickBaer
7 Replies
8. UNIX for Dummies Questions & Answers
I'm trying to install Solaris 10 along with Ubuntu (dual-boot system)
The problem is, GParted partition manager (Ubuntu) didn't recognize the FAT file system used to install the Solaris. It said that the block size is unknown file system..
What's the correct file system to install Solaris so... (6 Replies)
Discussion started by: frankoko
6 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I'm trying to extract a war file via the jar command; however, when I issue:
jar -xvf MyWarFile.war
I'm recieving "jar: not found"
I added
/usr/bin to the path ...didn't work
also tried
/usr/bin/jar to the path...still doesn't work
My JAVA_HOME/bin is also in the path.
... (1 Reply)
Discussion started by: orahi001
1 Replies
10. Shell Programming and Scripting
I need to accept a number of arguments at command line and print it in reverse order
i use eval `echo x=$1` to capture the argument
#! /bin/sh
counter=0
while
do
eval `echo x=$1`
arg$counter=$x
counter=`expr $counter + 1`
shift
done
but the error keeps... (1 Reply)
Discussion started by: scmay
1 Replies
MU-CFIND(1) General Commands Manual MU-CFIND(1)
NAME
mu_cfind - find contacts in the mu database and export them for use in other programs.
SYNOPSIS
mu cfind [options] [<pattern>]
DESCRIPTION
mu cfind is the mu command for finding contacts (name and e-mail address of people who were either sender or receiver of mail). There are
different output formats available, for importing the contacts into other programs.
SEARCHING CONTACTS
When you index your messages (see mu index), mu creates a list of unique e-mail addresses found and the accompanying name. In case the same
e-mail address is used with different names, the most recent non-empty name is used.
mu cfind starts a search for contacts that match a regular expression. For example:
$ mu cfind '@gmail.com'
would find all contacts with a gmail-address, while
$ mu cfind Mary
would find all contact with Mary in either name or e-mail address.
If you do not specify any search expression, mu cfind will return the full list of contacts.
The regular expressions are Perl-compatible (as per the PCRE-library).
OPTIONS
--format=plain|mutt-alias|mutt-ab|wl|org-contact|bbdb|csv
sets the output format to the given value. The following are available:
| --format= | description |
|-------------+-----------------------------------|
| plain | default, simple list |
| mutt-alias | mutt alias-format |
| mutt-ab | mutt external address book format |
| wl | wanderlust addressbook format |
| org-contact | org-mode org-contact format |
| bbdb | BBDB format |
| csv | comma-separated values |
RETURN VALUE
mu cfind returns 0 upon successful completion -- that is, at least one contact was found. Anything else leads to a non-zero return value,
for example:
| code | meaning |
|------+--------------------------------|
| 0 | ok |
| 1 | general error |
| 2 | no matches (for 'mu cfind') |
INTEGRATION WITH MUTT
You can use mu cfind as an external address book server for mutt. For this to work, add the following to your muttrc:
set query_command = "mu cfind --format=mutt-ab '%s'"
Now, in mutt, you can easily search for e-mail address using the query-command, which is (by default) accessible by pressing Q.
ENCODING
mu cfind output is encoded according to the current locale except for --format=bbdb. This is hard-coded to UTF-8, and as such specified in
the output-file, so emacs/bbdb can handle it correctly without guessing.
BUGS
Please report bugs if you find them at http://code.google.com/p/mu0/issues/list.
AUTHOR
Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
SEE ALSO
mu(1) mu-index(1) mu-find(1) pcrepattern(3)
User Manuals May 2011 MU-CFIND(1)