Sponsored Content
Top Forums Shell Programming and Scripting getting part of directory after a certain / Post 302627831 by vanessafan99 on Sunday 22nd of April 2012 02:07:06 AM
Old 04-22-2012
thanks for answering Smilie
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

current directory as part of the csh prompt

I would like my csh prompt to behave like the linux csh prompt setting done by linux command (set prompt="%n@%m %c]$ ") how do I do that? What I'm trying to do is that I would like to see what directory I'm in by looking at the prompt. I've figured out that %n is like $user, and %m is like... (3 Replies)
Discussion started by: jamesloh
3 Replies

2. Shell Programming and Scripting

Bash: How to get part of the directory name?

How can I write a script that determines the directory the user is in, and displays that path up until a particular point? Specifically, I need to find the text "packages" in the directory name, then I need to capture that directory and the one below it. For example, if the user is in the... (5 Replies)
Discussion started by: RickS
5 Replies

3. Shell Programming and Scripting

listing Directory chronologically based on part of file name

hi Everbody, I had file names as shown file_01_20101104.txt file_01_20101105.txt file_02_20101104.txt file_01_20101205.txt file_03_20101104.txt file_02_20101105.txt Now i want to list them based on the date in the file name as shown... file_01_20101104.txt file_02_20101104.txt... (3 Replies)
Discussion started by: Reddy482
3 Replies

4. UNIX for Dummies Questions & Answers

Remove part of file names in a directory

Hi, i have a directory full of pictures, .jpg files. Half of them begin with "beach_" (for ex beach_123_123456.jpg) i'm looking for a command to remove the "beach_" from all files in the directory. thanks (4 Replies)
Discussion started by: robertmanalio
4 Replies

5. UNIX for Dummies Questions & Answers

Renaming files with part of their pathname and copying them to new directory

Hi I think this should be relatively simple but I can't figure it out. I have several files with the same name in different folders within a directory (the output of a program that I ran). Something like this: ./myAnalysis/item1/round1/myoutput.txt ./myAnalysis/item1/round2/myoutput.txt... (2 Replies)
Discussion started by: jullee
2 Replies

6. Shell Programming and Scripting

Selecting/using part of directory names in script

I'm making a shell script to: -copy directories to a new location -perform conversions on the files within the copied directories -move the newly created files to a new directory Please see my super basic script and notes below... and thank you thank you thank you in advance !! ... (1 Reply)
Discussion started by: kayzee
1 Replies

7. Shell Programming and Scripting

Add part of directory name to filename

Hello, I need to add a part of folder name to the files inside it. For instance the file is HMCBackup_20150430.155027.tgz and it is under directory /nim/dr/HMCBackup/cops22 I need to add cops22 to the file name so as it would be cops22_HMCBackup_20150430.155027.tgz Any help in doing... (10 Replies)
Discussion started by: hasn318
10 Replies

8. UNIX for Advanced & Expert Users

A way to print only part of directory path

Hi, So I struggled to find a solution to the following problem: I want to make sed print only part of multiple different paths. So lets say we have /path/path1/path2/logs/bla/blabla /path/path1/path2/path3/logs/yadda/yadda/yadda Can someone suggest a way to make sed or other... (5 Replies)
Discussion started by: dampio
5 Replies

9. UNIX for Advanced & Expert Users

Linux cant cd into directory and part of group

I am part of the group group1. The directory permission I am trying to cd into are 770 for both the parent directory and child directory but I still can not cd into. What am I doing wrong? $ ls -l /NAS/infa/ drwxrwxr-x. 22 user1 group1 506 Jun 6 17:05 infa_shared $... (5 Replies)
Discussion started by: cokedude
5 Replies
openam(1)						      General Commands Manual							 openam(1)

NAME
openam - H.323 answering machine SYNOPSIS
openam [options]... DESCRIPTION
openam is a simple answering machine using the H.323 protocol. openam works by setting up a H.323 listener process, and then waiting for incoming connections. Whenever an incoming connection is established, it plays the outgoing message (OGM) and then starts recording any incoming audio from the remote end into a record file. OPTIONS
All of the command line options to openam can be specified in long form, and the most commonly used options also have single character equivalents. The long forms can also be used in the openam configuration file. -d, --directory dir Set the directory that record files are created in to dir. -D, --disable codec Disable the specified codec (may be used multiple times). -g, --gatekeeper host Upon startup, register only with the specified gatekeeper rather than attempting to find a gatekeeper by using UDP broadcast. --g711message filename Set outgoing message for G.711 codec to filename. --g7231message filename Set outgoing message for G.723.1 codec to filename. --gsmmessage filename Set outgoing message for GSM codec to filename. -h, --help Display the help message. -i, --interface IP Only bind to the specified network interface address. By default, openam automatically listens for incoming calls on all TCP/IP network interfaces available on the host machine. This option is useful for running multiple copies of openam on the same multi-homed machine, or for ensuring that only calls from the external, or internal, network will be received on a particular answering machine. -k, --kill Kill recorded files after user command. -l, --limit secs Limit recorded messages to a duration of secs seconds (defaults to 30). --listenport port Listen on the specified tcp port instead of the default 1720. -m, --message filename Set outgoing message to filename. -n, --no-gatekeeper Do not attempt to find a gatekeeper upon startup using UDP broadcast. -o, --output filename Write trace output (enabled with the -t option) to the specified file rather than to stderr. --pcmmessage filename Set outgoing message for PCM derived codecs (G.711/GSM) to filename. -P, --prefer codec Sets the prefered codec to the specified codec. If used multiple times, it specifies an order in preference, being the first one specified the most prefered one. --require-gatekeeper Exit if a gatekeeper cannot be found. -r, --run cmd Run the command specified as cmd after each recorded message. --save Save arguments in configuration file. -t, --trace Enable debug tracing, which displays messages at run-time to assist in debugging or problem identification. Specifying this option multiple times increases the amount of information displayed. Use the -o option to write the trace information to a file rather than to stderr. -u, --username str Set the local endpoint name to str. Default is "OpenH323 Answering Machine vxxx". CONFIGURATION FILE
openam options can be set in the openam configuration file ~/.pwlib_config/openam.ini either by edditing this file or via the --save option. Options must be located in the section prefixed with [Options]. The long form of any command line option specified above can be specified in the configuration file, in the format: option = value EXAMPLES
openam -n -m hello Start the program without registering with a gatekeeper using message on file hello.sw or hello.g723 depending on the codec. openam -m sample_message -r new_msg Start the answer machine searching for a gatekeeper to register with, using the examples "sample_message" and "new_msg" respectively as the answering message and the script to be run after each recorded message. FILES
~/.pwlib_config/openam.ini BUGS
None that I know of. SEE ALSO
README.txt file in the doc directory. 18 Jul 2001 openam(1)
All times are GMT -4. The time now is 03:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy