04-23-2013
Thanks,
I put a tripple \ in the command and it worked.
any idea if its possible as well with the 2nd part of the question? if $SHOW contains a space in the name if its possible to put the space in it?
10 More Discussions You Might Find Interesting
1. Linux
I'm attempting to print to a networked konica printer. No linux drivers that I know of exist, but we've always used HP 5si drivers and have had good results.
We just loaded a box up with CentOS 5, and now when we print any sort of file from the command line (lp -dkonica <filename>), the text is... (0 Replies)
Discussion started by: fender177
0 Replies
2. Shell Programming and Scripting
Hi guys, not that used to using sed beyond the simple substitution. I am trying to check for a program (program1) and if it exists replace the standard output "program1" with a "program1(part1 part2) output if said program exists.
SW="program1 program2"
PROGRAM_TEST='echo "$SW" | grep... (3 Replies)
Discussion started by: mikepegg
3 Replies
3. Shell Programming and Scripting
Hello,
I am attempting to create a command that I can eventually put into a loop so I can edit 1file on many servers. I would like to edit the file in place with sed -i. If not I will take any suggestions on how to use a temp file. I need to remove a email address from the configuration file... (4 Replies)
Discussion started by: abacus
4 Replies
4. Shell Programming and Scripting
Hi,
I am modifying a file with sed command. i want to make SCORE= blank in the file whereever SCORE=somevalue.
What will *$ do in the below command?
cat $file | sed 's/SCORE=.*$/SCORE=\r/g' > newfile
The last line is also missing in the new file. How to make SCORE='100' to SCORE=... (5 Replies)
Discussion started by: ashok.k
5 Replies
5. UNIX for Dummies Questions & Answers
Hello everyone,
This is my first posting. I have read the rules of this forum. I have searched many various threads and haven't found one that applies to my situation or suggestions to fix the issue. I do appreciate the help.
I am trying to execute a basic UNIX script in a Solaris... (4 Replies)
Discussion started by: dqrgk0
4 Replies
6. UNIX for Advanced & Expert Users
hello,
is it a behavior of or
that "-i" removes unix link .
example :
i create a file "src_file" and link it to "link_file" and then i start "perl -i"
the link is removed. does another option exists to change content of a file without temporary files ?
UNIX-Version: HP-UX and... (2 Replies)
Discussion started by: bora99
2 Replies
7. Shell Programming and Scripting
Why does the below command doesnt work fine on SunOS 5.10
$ cat t
| AK| | | | | DS | | | | tAR | | | | | FIL |
$ sed -e 's/^ *//g' -e 's/ *$//g' -e 's/ *| */|/g' t
|AK|||||DS|||| tAR|||||FIL|
##notice before tAR
works fine on Linux OR AIX though
... (8 Replies)
Discussion started by: Shivdatta
8 Replies
8. Shell Programming and Scripting
I use SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
We have a user-defined command called "submit" which will open a vi terminal in which we need to enter the description at 24th line and save it.
In order to simplify this, i decided to create another command in which the... (3 Replies)
Discussion started by: pandeesh
3 Replies
9. Shell Programming and Scripting
sed is not applying /d "delete line" option when I also include match word options \< and \>
examples...
echo cat | sed '/\<cat\>/d'
will return cat for some reason
echo cat | sed "/\<cat\>/d"
will also still return cat.
Of course I can just run this... echo cat | sed '/cat/d' and... (1 Reply)
Discussion started by: escooter87
1 Replies
10. Shell Programming and Scripting
Hi
We have a requirement to send email using shell script.email should have html body and pdf attachment. We used uuencode for attaching files and sendmail option to acheive and it is working fine. However custoemr wants to make body of email slightly dynamic. E.g dear customer in html file... (3 Replies)
Discussion started by: Harish7586
3 Replies
SHOW(7) SQL Commands SHOW(7)
NAME
SHOW - show the value of a run-time parameter
SYNOPSIS
SHOW name
SHOW ALL
DESCRIPTION
SHOW will display the current setting of run-time parameters. These variables can be set using the SET statement, by editing the post-
gresql.conf configuration file, through the PGOPTIONS environmental variable (when using libpq or a libpq-based application), or through
command-line flags when starting the postgres server. See in the documentation for details.
PARAMETERS
name The name of a run-time parameter. Available parameters are documented in in the documentation and on the SET [set(7)] reference
page. In addition, there are a few parameters that can be shown but not set:
SERVER_VERSION
Shows the server's version number.
SERVER_ENCODING
Shows the server-side character set encoding. At present, this parameter can be shown but not set, because the encoding is
determined at database creation time.
LC_COLLATE
Shows the database's locale setting for collation (text ordering). At present, this parameter can be shown but not set,
because the setting is determined at database creation time.
LC_CTYPE
Shows the database's locale setting for character classification. At present, this parameter can be shown but not set,
because the setting is determined at database creation time.
IS_SUPERUSER
True if the current role has superuser privileges.
ALL Show the values of all configuration parameters, with descriptions.
NOTES
The function current_setting produces equivalent output; see in the documentation. Also, the pg_settings system view produces the same
information.
EXAMPLES
Show the current setting of the parameter DateStyle:
SHOW DateStyle;
DateStyle
-----------
ISO, MDY
(1 row)
Show the current setting of the parameter geqo:
SHOW geqo;
geqo
------
on
(1 row)
Show all settings:
SHOW ALL;
name | setting | description
--------------------------------+--------------------------------+----------------------------------------------------------------------------------------------
add_missing_from | off | Automatically adds missing table references to FROM clauses.
allow_system_table_mods | off | Allows modifications of the structure of system tables.
.
.
.
work_mem | 1024 | Sets the maximum memory to be used for query workspaces.
zero_damaged_pages | off | Continues processing past damaged page headers.
(146 rows)
COMPATIBILITY
The SHOW command is a PostgreSQL extension.
SEE ALSO
SET [set(7)], RESET [reset(7)]
SQL - Language Statements 2010-05-14 SHOW(7)