Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glob(1) [ultrix man page]

glob(1) 							   User Commands							   glob(1)

glob - shell built-in function to expand a word list SYNOPSIS
csh glob wordlist DESCRIPTION
csh glob performs filename expansion on wordlist. Like echo(1), but no `' escapes are recognized. Words are delimited by null characters in the output. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
csh(1), echo(1), attributes(5) SunOS 5.10 15 Apr 1994 glob(1)

Check Out this Related Man Page

glob.h(3HEAD)                                                         Headers                                                        glob.h(3HEAD)

glob.h, glob - pathname pattern-matching types SYNOPSIS
#include <glob.h> DESCRIPTION
The <glob.h> header defines the structures and symbolic constants used by the glob(3C). The structure type glob_t contains the following members: size_t gl_pathc /* count of paths matched by pattern */ char **gl_pathv /* pointer to a list of matched pathnames */ size_t gl_offs /* lots to reserve at the beginning of gl_pathv */ The following constants are provided as values for the flags argument: GLOB_APPEND Append generated pathnames to those previously obtained. GLOB_DOOFFS Specify how many null pointers to add to the beginning of gl_pathv. GLOB_ERR Cause glob() to return on error. GLOB_MARK Each pathname that is a directory that matches pattern has a slash appended. GLOB_NOCHECK If pattern does not match any pathname, then return a list consisting of only pattern. GLOB_NOESCAPE Disable backslash escaping. GLOB_NOSORT Do not sort the pathnames returned. The following constants are defined as error return values: GLOB_ABORTED The scan was stopped because GLOB_ERR was set or (*errfunc)() returned non-zero. GLOB_NOMATCH The pattern does not match any existing pathname, and GLOB_NOCHECK was not set in flags. GLOB_NOSPACE An attempt to allocate memory failed. GLOB_NOSYS Reserved. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
glob(3C), attributes(5), standards(5) SunOS 5.10 10 Sep 2004 glob.h(3HEAD)
Man Page

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

AWK -> getting "global" vars

Hello, presently, I'm calling nawk from my main script and have nawk defined in one file. So I call nawk like this nawk -f file input This file defines how to separate mails in /var/mail/$user and show 1 at a time. However, I would also like to do other actions (delete message, forward... (9 Replies)
Discussion started by: petoSVK
9 Replies

2. Shell Programming and Scripting

how to access globals in a function

I know any globals can be directly modified in a function without passing/returning parameters- provided the function is written within the same file. However, when I wrote functions in a saparate file (so hopefully they can be re-used by multiple script programs), and then call them from the main,... (11 Replies)
Discussion started by: bluemoon1
11 Replies

3. UNIX for Advanced & Expert Users

global substitution in VI

Hi All, I'm trying to add a carriage return to the end of my lines in a text file using substitution, but I havent found a way as yet. Can anyone help? something along the lines of: :%s/<^A/^M/g obviously, this doesnt work. Many thanks. (11 Replies)
Discussion started by: OLweiser
11 Replies

4. Shell Programming and Scripting

global date for many scripts in shell

Hi, I am using shell (#!/bin/bash), i am trying to set my date in a script, i want this dates to be used by another scripts. I have tried to make: #!/bin/bash begin_date =`date +%Y_%m_%d_%H_%M_%S`, i also tried: #!/bin/bash begin_date =20080709 12:14:11, then i write in... (11 Replies)
Discussion started by: rosalinda
11 Replies

5. Solaris

How to know the global zonename from non-global zone?

It is easy to list all zones from global zones, but how to find out the global zone name from non-global zone? thx (11 Replies)
Discussion started by: honglus
11 Replies

6. Solaris

Not able to ping global zone from local zone

Hi Gurus I am not able to ping the local zone from global zone when i am trying to ping i am getting below ICMP Host Unreachable from gateway zone ( for icmp from zone ( to sun1 ( However i can ping local zone from global please... (12 Replies)
Discussion started by: kumarmani
12 Replies

7. Shell Programming and Scripting

Sed command to globally replace xth occurance.

This should replace the 1st and the 3rd occurance of "the": sed -e "s/ the / those /1;s/ the / these /3" This works only by line. If there is a second "the", but in an other line for example, it counts it as 1st again and replaces it again. How can I replace "the" 1st and 3rd... (14 Replies)
Discussion started by: lowmaster
14 Replies

8. Solaris

Adding multiple virtual interfaces on a non global zone.

Hello All, I have a requirement to add multiple virtual interfaces on a non-global zone (Solaris 10). The global zone is a 2 node Veritas Cluster Server. So, my question is do we have to make any modifications to the cluster config (which I think should not be the case)? Can anyone help with me... (11 Replies)
Discussion started by: mahive
11 Replies

9. Solaris

How to identify a global or non-global Solaris server?

Hi, I have Solaris zone configured with Solaris 9 and 10. In Solaris 10(non global), I use the command “zonename” to get whether it is global or non-global server. For Solaris 9, what command I can use to get whether it is global or non-global server. Regards, Kalai :confused: (25 Replies)
Discussion started by: kalpeer
25 Replies

10. UNIX for Dummies Questions & Answers

Is there any global command in UNIX?

Hi, I heard about some global commands for information gathering in UNIX systems. some commands which will execute on a UNIX system in a local network and other systems will reply to these command with some information about themselves. for example, from one of those UNIX machines (in a... (15 Replies)
Discussion started by: siavash
15 Replies

11. Shell Programming and Scripting

Globbing or not globbing

Hi guys, Here is a simple script. It writes the current time to specific files in a directory. The arguments are the names of the files to write the date to (without path nor extension). root:~# cat /usr/local/bin/ #!/bin/sh -e for file in $@; do date >> /var/lib/$file.dat... (11 Replies)
Discussion started by: chebarbudo
11 Replies

12. Solaris

Modify the Hostid in a Solaris 11 Global Zone running on VMWare

Hi Folks, I've been presented with an unexpected problem and I'm not sure if I can resolve it without some input from people. I have on this site 3 license servers running Solaris, one at; SunOS xxxxxx 5.8 Generic_117350-08 sun4u sparc SUNW,Ultra-5_10 One at; SunOS yyyyyy 5.7... (12 Replies)
Discussion started by: gull04
12 Replies

13. Solaris

Solaris Global/Zones patching

Issue is : We have Solaris Global with 12 Zones and some have 15 Zones. All the OS version are10. Is it possible to apply patch at Zone level instead of patching at Global level? Please let me know. (10 Replies)
Discussion started by: baladelaware73
10 Replies

14. Shell Programming and Scripting

Bash script to extract paragraph with globs in it

Hi, Its been a long time since I have used Bash to write a script so am really struggling here. Need the gurus to help me out. uname -a Linux lxserv01 2.6.18-417.el5 i have a text file with blocks of code written in a similar manner ******* BEGIN MESSAGE ******* Station /... (12 Replies)
Discussion started by: dsid
12 Replies