Sponsored Content
Special Forums UNIX Desktop Questions & Answers Assistance with using quotes in shellscript programming Post 302908913 by sambamcunningha on Friday 11th of July 2014 12:37:00 PM
Old 07-11-2014
Thank you - that worked great!
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Double quotes or single quotes when using ssh?

I'm not very familiar with the ssh command. When I tried to set a variable and then echo its value on a remote machine via ssh, I found a problem. For example, $ ITSME=itsme $ ssh xxx.xxxx.xxx.xxx "ITSME=itsyou; echo $ITSME" itsme $ ssh xxx.xxxx.xxx.xxx 'ITSME=itsyou; echo $ITSME' itsyou $... (3 Replies)
Discussion started by: password636
3 Replies

2. UNIX for Dummies Questions & Answers

Carreer:Networking Programming in Unix (C programming Language)

Hello, I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies

3. Shell Programming and Scripting

Single quotes and double quotes

Hi guys, I have a sed line in double quotes which works fine, but I want it to be in single quotes here is the sed line sed "/abc_def/s/\'.*\'/\'\${abc_def}\'/" can some one give the equivalent to the above script in single quotes Thanks a ton (5 Replies)
Discussion started by: sol_nov
5 Replies

4. UNIX for Dummies Questions & Answers

grep single quotes or double quotes

Unix superusers, I am new to unix but would like to learn more about grep. I am very familiar with regular expressions as i have used them for searching text files in windows based text editors. Since I am not very familiar with Unix, I dont understand when one should use GREP with the... (2 Replies)
Discussion started by: george_vandelet
2 Replies

5. Shell Programming and Scripting

Having a terrible problem with quotes/single quotes!

Hello. I'm trying to write a bash script that uses GNU screen and have hit a brick wall that has cost me many hours... (I'm sure it has something to do with quoting/globbing, which is why I post it here) I can make a script that does the following just fine: test.sh: #!/bin/bash # make... (2 Replies)
Discussion started by: jondecker76
2 Replies

6. UNIX for Dummies Questions & Answers

From iOS programming to Linux system programming

Hello. I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations: 1. Linux and iOS are UNIX-like systems, POSIX compliant. 2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies

7. Shell Programming and Scripting

Issue with Single Quotes and Double Quotes for prompt PS1

Hi, Trying to change the prompt. I have the following code. export PS1=' <${USER}@`hostname -s`>$ ' The hostname is not displayed <abc@`hostname -s`>$ uname -a AIX xyz 1 6 00F736154C00 <adcwl4h@`hostname -s`>$ If I use double quotes, then the hostname is printed properly but... (3 Replies)
Discussion started by: bobbygsk
3 Replies

8. Shell Programming and Scripting

Removing quotes within quotes

Hello everyone, I am working on a file with thousands of lines and instead of manually removing them I need a script to remove quotes within quotes. For example a line may have something such as this: "Hey, I was ready to go on stage or "break a leg", but I failed miserably." So I need to... (15 Replies)
Discussion started by: tastybrownies
15 Replies

9. Shell Programming and Scripting

Replace Double quotes within double quotes in a column with space while loading a CSV file

Hi All, I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes. Sample Data : "221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
Discussion started by: mlavanya
6 Replies
img-ps(3tk)															       img-ps(3tk)

NAME
img-ps - Img, Adobe PostScript Format (ps) SYNOPSIS
package require Tk package require img::ps ?1.3? image create photo ?name? ?options? DESCRIPTION
The package img::ps is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its own, via package require img::ps. Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing raster images in the Adobe PostScript Format (ps). More specifically img::ps extends Tk's photo image type. The name of the new format handler is ps. This handler provides new additional configuration options. See section PostScript OPTIONS for more detailed explanations. Note that this package provides a pdf handler too, i.e. a handler for the Adobe Portable Document Format. That handler accepts the same options as the ps handler. The package delegates the actual conversion of data in PostScript and PDF format into a raster image to the ghostscript application. It therefore depends upon the presence of said application and is non-functional is ghostscript is not present. All of the above means that in a call like image create photo ?name? ?options? [1] Image data in ps and PDF format (options -data and -file) is detected automatically. [2] The format names ps and pdf are recognized by the option -format. In addition the value for the option is treated as list and may contain any of the special options listed in section PostScript OPTIONS. PostScript OPTIONS The handler provides two options, both influencing the reading of PostScript or PDF images. The handler is not able to write images in PostScript or PDF. -index n This option is for reading from PostScript/PDF data containing more than one page. When specified it will read the n'th page in the data. The first page is at index 0 and will be read by default, i.e. when the option is not specified. Note: This option is not yet implemented. -zoom X Y Multiply image size by the given scale factors. If Y is missing, the default is the same as X. X and Y are allowed to be in floating point format, but they are rounded to the nearest practically possible value. For postscript this means the zoom factors should be multiples of 1/72. REQUIREMENTS
The code provided by Img does not perform the interpretation and rasterizing of the input by itself but delegates this to the gs applica- tion. This is the GhostScript implementation of PostScript (and PDF). If gs is not installed this format handler cannot be used. SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img- window, img-xbm, img-xpm KEYWORDS
ghostscript, gs, image handling, pdf, postscript, ps, tk COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com> Img 1.3 img-ps(3tk)
All times are GMT -4. The time now is 04:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy