11-16-2006
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All,
I like this forum btw, and have only been lurking for about a day.
Recently I purchased some new hardware (AMD Athlon 64 3200+ and a Asus K8V Deluxe Motherboard), and I want to find an OS that can take advantage of the 64 bit processor.
Basically, what are the differences... (2 Replies)
Discussion started by: RoY_mUnSoN
2 Replies
2. Shell Programming and Scripting
Hi,
I have written the following two scripts.
a.ksh --->
FPATH=/users/kushard
autoload b
b
echo "From a.ksh::" $aa
b --->
function b
{
typeset aa
aa="TRUE."
echo "From b::" $aa
export aa
} (1 Reply)
Discussion started by: kdipankar
1 Replies
3. UNIX for Dummies Questions & Answers
Good day, everyone!
Could anybody explain me the following situation.
If I'm running similar script:
Var="anna.kurnikova"
Var2="Anna Kurn"
echo $Var | tr -t "$Var" "$Var2"
Why the output is :
anna KurniKova
instead of Anna Kurnikova?
:confused:
Thank you in advance for any... (2 Replies)
Discussion started by: Nafanja
2 Replies
4. UNIX for Dummies Questions & Answers
I come across an entry in cron which is in such:
0 * * * *
What is the first 0 indicating? 0 minute? meaning a script cron as such will run every minute? :confused: (2 Replies)
Discussion started by: user50210
2 Replies
5. Homework & Coursework Questions
I don't even know where to start with this one. There is so much out there about different aspects of this. I am starting with a basic Ubuntu 11.04 install. Do I need to configure a DNS? I am a little confused about that. What do I need to do for a domain name? I have followed various tutorials,... (1 Reply)
Discussion started by: polyglot0727
1 Replies
6. Shell Programming and Scripting
Hello All,
I have a problem in counting number of process getting run with my current script name..
Here it is
ps -ef | grep $0 | grep -v grep
This display just one line with the PID, PPID and other details when i print it in the script.
But when I want to count the numbers in my... (11 Replies)
Discussion started by: sathyaonnuix
11 Replies
7. UNIX for Dummies Questions & Answers
Is wc -c and wc -m same ?
Shellscript::cat file1
hello
Shellscript::cat file1 | wc -c
6
Shellscript::cat file1 | wc -m
6
Shellscript::file file1
file1: ASCII text
Shellscript::uname -a
Linux was85host 2.6.27.45-0.1-vmi #1 SMP 2010-02-22 16:49:47 +0100 i686 i686 i386 GNU/LinuxAtleast... (5 Replies)
Discussion started by: shellscripting
5 Replies
8. Shell Programming and Scripting
Hi Seders,
i am new to this forum, but i think it's quite the best place to post.
So, here is my pb :
I have a csv file, with comma separator and text enclosed by ".
First pb is with text in " ......... ", wich sometimes includes lines break, and commas
And to complicate a little more,... (4 Replies)
Discussion started by: yogeek
4 Replies
9. UNIX for Beginners Questions & Answers
#!/bin/bash
X=(0 2 4 6 7 0 0 0 0)
Let me just say from the start that sed confuses the hell out of me!
In the above line of code how can I use sed to remove all of the 0's except the first one?
I have tried sed -e 's/*$//g' but it removes all of the 0's.
Thank you in advance for any and... (3 Replies)
Discussion started by: cogiz
3 Replies
GLOB(7) BSD Miscellaneous Information Manual GLOB(7)
NAME
glob -- shell-style pattern matching
DESCRIPTION
Globbing characters (wildcards) are special characters used to perform pattern matching of pathnames and command arguments in the csh(1),
ksh(1), and sh(1) shells as well as the C library functions fnmatch(3) and glob(3). A glob pattern is a word containing one or more unquoted
'?' or '*' characters, or ``[..]'' sequences.
Globs should not be confused with the more powerful regular expressions used by programs such as grep(1). While there is some overlap in the
special characters used in regular expressions and globs, their meaning is different.
The pattern elements have the following meaning:
? Matches any single character.
* Matches any sequence of zero or more characters.
[..] Matches any of the characters inside the brackets. Ranges of characters can be specified by separating two characters by a '-' (e.g.
``[a0-9]'' matches the letter 'a' or any digit). In order to represent itself, a '-' must either be quoted or the first or last
character in the character list. Similarly, a ']' must be quoted or the first character in the list if it is to represent itself
instead of the end of the list. Also, a '!' appearing at the start of the list has special meaning (see below), so to represent
itself it must be quoted or appear later in the list.
Within a bracket expression, the name of a character class enclosed in '[:' and ':]' stands for the list of all characters belonging
to that class. Supported character classes:
alnum cntrl lower space
alpha digit print upper
blank graph punct xdigit
These match characters using the macros specified in ctype(3). A character class may not be used as an endpoint of a range.
[!..] Like [..], except it matches any character not inside the brackets.
Matches the character following it verbatim. This is useful to quote the special characters '?', '*', '[', and '' such that they
lose their special meaning. For example, the pattern ``\*[x]?'' matches the string ``*[x]?''.
Note that when matching a pathname, the path separator '/', is not matched by a '?', or '*', character or by a ``[..]'' sequence. Thus,
/usr/*/*/X11 would match /usr/X11R6/lib/X11 and /usr/X11R6/include/X11 while /usr/*/X11 would not match either. Likewise, /usr/*/bin would
match /usr/local/bin but not /usr/bin.
SEE ALSO
fnmatch(3), glob(3), re_format(7)
HISTORY
In early versions of UNIX, the shell did not do pattern expansion itself. A dedicated program, /etc/glob, was used to perform the expansion
and pass the results to a command. In Version 7 AT&T UNIX, with the introduction of the Bourne shell, this functionality was incorporated
into the shell itself.
BSD
November 30, 2010 BSD