Sponsored Content
Full Discussion: Help with selective ls
Top Forums UNIX for Dummies Questions & Answers Help with selective ls Post 302617037 by CarloM on Monday 2nd of April 2012 04:21:31 AM
Old 04-02-2012
Code:
ls log_+([0-9]).txt

(ksh on RHEL 5.4)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

echo is selective?

i tried to ask about this earlier, but didn't explain well enough. From a script, i issue the following: echo `pgp --encrypt filename --recipient public-key` The result is perfect. The encrypted file is in the directory just as if i'd issued the pgp command from the command line. However,... (0 Replies)
Discussion started by: rgard
0 Replies

2. UNIX for Advanced & Expert Users

Selective Umask

Hi, We have umask 022 in /etc/profile for security reasons. But I want have some other umask for selected users. how to achieve this? Regards (3 Replies)
Discussion started by: baanprog
3 Replies

3. IP Networking

selective masquerading

I am running Linux 2.6.20 on i686 architecture. I want to be able to masquerade different hosts on my LAN to different external interfaces. Specifically, I want one specific host to masquerade through a vpn tunnel while the other hosts simply masquerade over the regular ISP interface. I only... (4 Replies)
Discussion started by: NESter
4 Replies

4. Shell Programming and Scripting

selective printing

hi all from below text "abcd,SYS_12345,xyz,PQR, ," I want to print only "abcd,SYS,xyz,PQR, ," i.e. taking only first three 3 chars from 2 string of comma separated file thanks (4 Replies)
Discussion started by: JoeColeEPL9
4 Replies

5. UNIX for Dummies Questions & Answers

selective grep

Hello, I have been using the command below for file manipulation. while read A B; do grep $f1; done < f2 > f3 So, if a certain string is found in f2 (for ex; DOG243435) and it is also present in f1, then print that string plus the contents of the line in which it was found onto f3. ... (6 Replies)
Discussion started by: verse123
6 Replies

6. Shell Programming and Scripting

Selective grep

I have to grep out only email address from a column. It has characters appended and prepended F=<sss1@domain.com> <sss2@domain.com> (sss3@domain.com) <sss4@domain.com> Whatever added before and after email, I should be able to grep out only emails. (9 Replies)
Discussion started by: anil510
9 Replies

7. Shell Programming and Scripting

Selective grouping

I have a text file in this format. Group: AAA Notes: IP : 11.11.11.11 #User xxxxxxxxx #Password aaaaaaaaaaaaaaaa Group: AAA Notes: IP : 11.11.11.22 #User yyyyyyyyyyyyy #Password bbbbbbbbbbbbb (8 Replies)
Discussion started by: anil510
8 Replies

8. UNIX for Dummies Questions & Answers

Selective replace

i have a large sequence of format sat_1_g3_g_0_8540 . A 1 15501 . . . ID=sat_1_g3_g_0_8540;parentName=sat_1_g3_g_0_8540;Al=sat_1_g2_g_0_8540; sat_1_g3_g_2_8510 . C 1 25501 . . . ... (11 Replies)
Discussion started by: siya@
11 Replies

9. Shell Programming and Scripting

Selective printing

I have the following contents in a file ---- CRITICAL: altered for /usr/bin/bin1 ---- OK: /usr/sbin/bin2 result fine ---- OK: /usr/sbin/bin3 result fine ---- CRITICAL: altered for /usr/bin/bin4 ---- OK: /usr/bin/bin5 result fine ---- OK: /usr/bin/bin6 result fine ---- CRITICAL: altered for... (9 Replies)
Discussion started by: anil510
9 Replies

10. Shell Programming and Scripting

Selective running

I have MegaCli64 -PDList -aALL | grep -E 'Enclosure Device ID|Slot Number' Enclosure Device ID: 252 Slot Number: 0 Enclosure Device ID: 252 Slot Number: 1 Enclosure Device ID: 252 Slot Number: 2 Enclosure Device ID: 252 Slot Number: 3 I need to run the following command on all slots... (4 Replies)
Discussion started by: anil510
4 Replies
AMQ(8)							    BSD System Manager's Manual 						    AMQ(8)

NAME
amq -- automounter query tool SYNOPSIS
amq [-fmpsvwHTU] [-h hostname] [-l log_file] [-x log_options] [-D debug_options] [-P program_number] [[-u] directory ...] DESCRIPTION
The amq utility provides a simple way of determining the current state of the amd(8) program. Communication is by RPC. Three modes of oper- ation are supported by the current protocol. By default a list of mount points and auto-mounted file systems is output. An alternative host can be specified using the -h option. If directory names are given, as output by default, then per file system information is displayed. OPTIONS
-f Ask the automounter to flush the internal caches and reload all the maps. -h hostname Specify an alternate host to query. By default the local host is used. In an HP-UX cluster, the root server is queried by default, since that is the system on which the automounter is normally run. -l log_file Tell amd(8) to use log_file as the log file name. For security reasons, this must be the same log file which amd(8) used when started. This option is therefore only useful to refresh amd's open file handle on the log file, so that it can be rotated and com- pressed via daily cron jobs. -m Ask the automounter to provide a list of mounted file systems, including the number of references to each file system and any error which occurred while mounting. -p Return the process ID of the remote or locally running amd(8). Useful when you need to send a signal to the local amd(8) process, and would rather not have to search through the process table. This option is used in the ctl-amd script. -s Ask the automounter to provide system-wide mount statistics. -u Ask the automounter to unmount the file systems named in directory instead of providing information about them. Unmounts are requested, not forced. They merely cause the mounted file system to timeout, which will be picked up by amd's main scheduler thus causing the normal timeout action to be taken. -v Ask the automounter for its version information. This is a subset of the information output by amd(8)'s -v option. -w Translate a full pathname as returned by getcwd(3) into a short amd(8) pathname that goes through its mount points. This option requires that amd(8) is running. -x log_options Ask the automounter to use the logging options specified in log_options from now on. -D debug_options Ask the automounter to use the debugging options specified in debug_options from now on. -H Display short usage message. -P program_number Contact an alternate running amd(8) that had registered itself on a different RPC program_number and apply all other operations to that instance of the automounter. This is useful when you run multiple copies of amd(8), and need to manage each one separately. If not specified, amq will use the default program number for amd(8), 300019. For security reasons, the only alternate program numbers amd(8) can use range from 300019 to 300029, inclusive. -T Contact amd(8) using the TCP transport only. Normally amq will try TCP, and if that failed, will try UDP. -U Contact amd(8) using UDP (connectionless) transport only. Normally amq will try TCP, and if that failed, will try UDP. FILES
amq.x RPC protocol description. CAVEATS
The amq utility uses a Sun registered RPC program number (300019 decimal) which may not be in the rpc(5) database. If the TCP wrappers library is available, and the use_tcpwrappers global amd.conf(5) option is set to ``yes'', then amd(8) will verify that the host running amq is authorized to connect. The ``amd'' service name must be used in the /etc/hosts.allow and /etc/hosts.deny files. For example, to allow only localhost to connect to amd(8), add this line to /etc/hosts.allow: amd: localhost and this line to /etc/hosts.deny: amd: ALL SEE ALSO
amd.conf(5), hosts_access(5), amd(8) ``am-utils'' info(1) entry. Erez Zadok, Linux NFS and Automounter Administration, Sybex, 2001, ISBN 0-7821-2739-8. http://www.am-utils.org/ Amd - The 4.4 BSD Automounter. HISTORY
The amq utility first appeared in 4.4BSD. AUTHORS
Jan-Simon Pendry <jsp@doc.ic.ac.uk>, Department of Computing, Imperial College, London, UK. Erez Zadok <ezk@cs.sunysb.edu>, Computer Science Department, Stony Brook University, Stony Brook, New York, USA. Other authors and contributors to am-utils are listed in the AUTHORS file distributed with am-utils. BSD
January 2, 2006 BSD
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy