Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Purpose of - (hypen) in script or command line Post 302541513 by gwgreen1 on Monday 25th of July 2011 02:14:09 AM
Old 07-25-2011
Bug Purpose of - (hypen) in script or command line

Hi,
I am new for unix and I am following ABS guide. What is the purpose of - (hypen ) in the below command and What it will do in this?. Can anyone explain it in detail. Rest of the things in the below command I understood somewhat.

(cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xpvf -)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

whats the purpose of the following script?

whats the purpose of the following script? who could run it? To what is the script refering that exceeds 75%? The mailbox? What does sed 's/%//' do? (1 Reply)
Discussion started by: vrn
1 Replies

2. Shell Programming and Scripting

Purpose of 2>&1 in the command

Can any body kindly tell me what is the purpose of 2>&1 in the following commands. nohup ./append_import.sh 1 > import1.out 2>&1 < /dev/null & nohup ./append_import.sh 2 > import2.out 2>&1 < /dev/null & (1 Reply)
Discussion started by: mmunir
1 Replies

3. Solaris

Purpose D option in useradd command

Hi Can any one tell about -D option in the useradd command? Thanks MaroV (3 Replies)
Discussion started by: vr_mari
3 Replies

4. Shell Programming and Scripting

script to fill up disk space for testing purpose

Hello everyone I am new to this forum I am working on a project and needed a test script to fill up a disk partition /tmp/data to see how the program fails. The system I am working on is a redhat 5.3. Is there anything out there? Thanks. (10 Replies)
Discussion started by: dp100022
10 Replies

5. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

6. Shell Programming and Scripting

Command executes on the command line but not from script

Hello guys, I have the following commands : Command 1: sudo find "../bundlepool" -name "merchandising2.html" -print0 |xargs -0 -I {} cp "rebranding/merchandising2.html" {} Command 2: find "../bundlepool" -name "merchandising2.html" -exec cp rebranding/merchandising2.html {} \; Command 3: ... (2 Replies)
Discussion started by: ihabo01
2 Replies

7. UNIX for Advanced & Expert Users

Sequence number merged with hypen, shell script

Hello Folks, i have to write shell scripting for given expected output manner. in given input we have to write shell script in such a way that sequence no can b merged/link between start and end digit with hyphen "-" symbol and rest of digit separated by "," Eg : For Input "2 6 7 8 11 12... (9 Replies)
Discussion started by: panchalh
9 Replies

8. Shell Programming and Scripting

SH script, variable built command fails, but works at command line

I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes CC=`which gcc` CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies

9. Shell Programming and Scripting

How to replace colon in HH:MI:SS to hypen?

I have a file that contains timestamp in some of the rows in the file and the field separator is colon and some of the rows have numerical values, timestamp and characters with colon as the field separator We are looking to change colon in HH:MI:SS for the timestamp to hyphen “-“ leaving the field... (1 Reply)
Discussion started by: cumeh1624
1 Replies

10. UNIX for Beginners Questions & Answers

General Purpose Date Script

There must be thousands of one-off solutions scattered around this forum. GNU Date is so handy because it's general but if they're asking they probably don't have it. We have some nice scripts but they tend to need dates formatted in a very particular way. This is a rough approximation which... (18 Replies)
Discussion started by: Corona688
18 Replies
PS_GET_PARAMETER(3)							 1						       PS_GET_PARAMETER(3)

ps_get_parameter - Gets certain parameters

SYNOPSIS
string ps_get_parameter (resource $psdoc, string $name, [float $modifier]) DESCRIPTION
Gets several parameters which were directly set by ps_set_parameter(3) or indirectly by one of the other functions. Parameters are by def- inition string values. This function cannot be used to retrieve resources which were also set by ps_set_parameter(3). The parameter $name can have the following values. o fontname - The name of the currently active font or the font whose identifier is passed in parameter $modifier. o fontencoding - The encoding of the currently active font. o dottedversion - The version of the underlying pslib library in the format <major>.<minor>.<subminor> o scope - The current drawing scope. Can be object, document, null, page, pattern, path, template, prolog, font, glyph. o ligaturedisolvechar - The character which dissolves a ligature. If your are using a font which contains the ligature `ff' and `|' is the char to dissolve the ligature, then `f|f' will result in two `f' instead of the ligature `ff'. o imageencoding - The encoding used for encoding images. Can be either hex or 85. hex encoding uses two bytes in the postscript file each byte in the image. 85 stand for Ascii85 encoding. o linenumbermode - Set to paragraph if lines are numbered within a paragraph or box if they are numbered within the surrounding box. o linebreak - Only used if text is output with ps_show_boxed(3). If set to TRUE a carriage return will add a line break. o parbreak - Only used if text is output with ps_show_boxed(3). If set to TRUE a carriage return will start a new paragraph. o hyphenation - Only used if text is output with ps_show_boxed(3). If set to TRUE the paragraph will be hyphenated if a hypen dic- tionary is set and exists. o hyphendict - Filename of the dictionary used for hyphenation pattern. PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $name - Name of the parameter. o $modifier - An identifier needed if a parameter of a resource is requested, e.g. the size of an image. In such a case the resource id is passed. RETURN VALUES
Returns the value of the parameter or FALSE on failure. SEE ALSO
ps_set_parameter(3). PHP Documentation Group PS_GET_PARAMETER(3)
All times are GMT -4. The time now is 02:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy