Sponsored Content
Full Discussion: A basic query
Top Forums Shell Programming and Scripting A basic query Post 91146 by vino on Wednesday 30th of November 2005 04:17:39 AM
Old 11-30-2005
man sh says

Code:
OPTIONS
       In addition to the single-character shell  options  documented  in  the
       description  of  the set builtin command, bash interprets the following
       options when it is invoked:

       -c string If the -c option is present,  then  commands  are  read  from
                 string.   If  there  are arguments after the string, they are
                 assigned to the positional parameters, starting with $0.

vino
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help on a basic example

hi, in a text file i have listed some file names, it look like this AAAA1 AAAA2 AAAA3 BBBBB1 AAAA4 BBBBB2 BBBBB3 AAAA5 AAAA6 BBBBB4 i want to make some operations on the files with name AAAAAx which is listed just before files with name BBBBBx that is: i want to select AAAA3,... (8 Replies)
Discussion started by: gfhgfnhhn
8 Replies

2. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

3. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

4. Shell Programming and Scripting

[Basic Query]bsh script in tcsh shell

I am a beginner (Just 2 days old:o ), i will really appreciate if you can solve my silly queries as below: Lets say i write a script like this #!/bin/bsh clear #to read name from keyboard echo "your name please.." read fname echo "you just entered $fname" exit 0 My environment is... (2 Replies)
Discussion started by: animesharma
2 Replies

5. Shell Programming and Scripting

(CSH basic construct) "@" query

While going through a script, i came across few syntax which I am not aware of what they exactly means. @ cnt = 1 @ num_all = `echo $var` What is the significance of "@" here. What is it called? (3 Replies)
Discussion started by: animesharma
3 Replies

6. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

7. UNIX for Dummies Questions & Answers

Basic SAN LUN query

Hi guys, We have created a LUN on SAN and assigned it to a server. On top of it we have created 4 LVM shares which are holding the data. Is it possible to add this LUN to some other server and access the data on LVM shares?(noob here) (1 Reply)
Discussion started by: pinga123
1 Replies

8. UNIX for Dummies Questions & Answers

Basic help

Hi , I need to know the difference between $((command)) and $(command) and $(($(command))). "" and '' and ``. I have tried searching the help files but cant able to find this. Could you let me knoq about any document. Thanks (4 Replies)
Discussion started by: Raj999
4 Replies
YASH(1) 						      General Commands Manual							   YASH(1)

NAME
yash - Yet Another Shell SYNOPSIS
yash [options] [filename [args...]] yash [options] -c command [command_name [args...]] yash [options] -s [args...] DESCRIPTION
yash is a command line shell that conforms to the POSIX.1 (IEEE Std 1003.1, 2008 Edition) standard for the most part. Actually, it is much more POSIX-compliant than other shell like bash and zsh. yash also has its own features beyond POSIX, such as: * global aliases * random numbers * socket redirections and other special redirections * right prompt * command completion OPTIONS
set - set shell options and positional parameters set [-abefhmnuvxC] [+abefhmnuvxC] [-o option] [+o option] [--] [arg...] set -o set +o The first form enables or disables the specified shell options and/or sets positional parameters to <arg>s. If no <arg>s are given, the positional parameters are not changed. If no options or <arg>s are given at all, a list of all existing variables is printed. To clear all positional parameters, use `set --'. The second form prints the current settings of the shell options in a human- readable form. The third form prints commands that can be used to restore the current option settings later. -h, --help Show this help message and exit -a --allexport Any variable is exported when assigned. -b --notify When the status of a job is changed, it is notified immediately. --notifyle Similar to -b, but only notify during line-editing. Ignored if -b is set. -e --errexit Exit the shell immediately when any simple command returns a non-zero status. +f --glob Perform pathname expansion (globbing). --caseglob Perform pathname expansion case-sensitively. --dotglob In pathname expansion, `*' and `?' match a `.' at the beginning of the filename. --markdirs In pathname expansion, directory pathnames have a `/' at the ends. --extendedglob Enable extended pathname expansion. --nullglob In pathname expansion, patterns that do not match any pathname are removed from the command line rather than left as is. -h --hashondef When a function is defined, all the commands in the function are registered in the command path cache. -m --monitor Enable job control. All jobs are run in their own process group. When the status of a job is changed, the status is reported before the next prompt. This option is enabled by default for an interactive shell. +n --exec Execute commands. This option cannot be disabled in an interactive shell. +u --unset Expand an undefined variable to an empty string. -v --verbose Echo each command to the standard error before execution. -x --xtrace After each command line is expanded, the expanded line is printed to the standard error. +C --clobber Allow redirections to overwrite existing files. --ignoreeof Do not exit when an EOF is entered. This option is effective in an interactive shell only. --braceexpand Enable brace expansion. --curasync, --curbg, --curstop A background job becomes the current job when (curasync) invoked as an asynchronous command (curbg) resumed by the bg built-in (curstop) stopped. (These options are enabled by default) --histspace Do not save lines that start with a space in the history. --posixly-correct Make the shell behave as the POSIX shell. --vi Enable vi-like editing. --emacs Enable emacs-like editing. --le-convmeta Treat 8th bit of input as a meta-key flag (regardless of terminfo). --le-noconvmeta Do not treat 8th bit of input as a meta-key flag. --le-visiblebell Alert with a flash rather than a bell. --le-promptsp Move cursor to beginning of line each time when starting line-editing. (enabled by default) --le-alwaysrp Make the right prompt always visible on the screen. --le-compdebug Print debugging information during command line completion. Options can be disabled by using `+' instead of `-'. For example, `set +a' or `set ++allexport' disables the allexport option. Prefixing `no' to a long option also disables the option. For example, `set --nounset' disables the unset option. AUTHOR
yash was written by Magicant <magicant@users.sourceforge.jp>. This manual page was written by Khalid El Fathi <khalid@elfathi.fr>, for the Debian project (and may be used by others). May 17, 2012 YASH(1)
All times are GMT -4. The time now is 09:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy