11-20-2003
Quote:
wuts the command that allows u to use 2 commands on one line?
if you dont mind, english please! Read the rules of the board.
you can run multiple commands on a single line by separating the commands by a semi colon.
example:
echo $PWD ; ls -a
You can also run multiple commands on a single line via a pipe. The pipe takes the output of one command and "pipes" it as input to another command.
example:
ps -ef | grep ORA
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I'm very new to unix, am learning it as part of my new job.
I have a book which has a list in the back, of a number of commands and their command line flags, detailing what these flags are used for.
I've been looking everywhere for an electronic copy of this type of list, so I can... (4 Replies)
Discussion started by: Kedgeboy
4 Replies
2. Shell Programming and Scripting
hello, is there a way to seperate commands that are on the same line?
ie: echo "yes count(*)>0:" $passvar > dsp cat dsp cat dsp > log
i'm trying to put these 3 commands on the same line, but when i do they all get concatenated into 1 lieteral
if i put the cat commands on... (3 Replies)
Discussion started by: bobk544
3 Replies
3. UNIX for Dummies Questions & Answers
Hi to all,
I have a file with 1000 lines,Now i need to get 789th record.So please any one help me out from this.
Thanks in advance.
Sathish (3 Replies)
Discussion started by: bsathishmca
3 Replies
4. Shell Programming and Scripting
Hi I want to write the following code in 1 line:
a=1
if
then
echo ok
else
echo not ok
fi
The following does not work:
a=1 ; if \r then \r echo ok \r else \r echo not ok \r fi
or
Even if I replace \r by \n it does not work.
Please suggest. (11 Replies)
Discussion started by: miltonkeynesguy
11 Replies
5. UNIX for Dummies Questions & Answers
hi!
how do i run 2 command from the same line
e.g: 'which screen' and then ls -la 'which screen' (4 Replies)
Discussion started by: rdns
4 Replies
6. Shell Programming and Scripting
Hi,
I want to make sed write a part of fileA (first 7 lines) to file1 and the rest of fileA to file2 in a single call and single line in sed. If I do the following:
sed '1,7w file1; 8,$w file2' fileA
I get only one file named file1 plus all the characters following file1. If I try to use curly... (1 Reply)
Discussion started by: varelg
1 Replies
7. UNIX for Dummies Questions & Answers
I tried opening the windows command line and typing UNIX commands, but they don't work. It kept saying that it was not recognized as an internal or external command, operable program or batch file.
Removed strange sentence with even stranger link
I need to use UNIX commands such as 'less',... (9 Replies)
Discussion started by: vlay2
9 Replies
8. UNIX for Dummies Questions & Answers
Hi There,
I have a cronjob that executes a small script (few lines) that I am certain can be achieved in a single line.
The functional objective is actually really simple;
cmd var1
The '1' in 'var1' is actually derived from date (day of month) but the snag is when working with 1-9 I... (3 Replies)
Discussion started by: Random79
3 Replies
9. Shell Programming and Scripting
Using ksh on AIX what I am trying to do is to read the ls -l output from a file in a do while loop line by line. Extract the user name(3rd field) and the directory/file name(9th field) using awk and save them into variables. su -c to the user and change directory/file permisions to 777. Script I... (13 Replies)
Discussion started by: zubairom
13 Replies
10. Shell Programming and Scripting
Hey everyone,
I am working in an environment where the different users can use ksh or csh. My situation is that I need the same result with one single command line.
I am searching for the real path the file is in.
My ksh input and output
ts2:ts2adm> cd $(dirname $(which sapcontrol)); pwd -P... (2 Replies)
Discussion started by: h1kelds
2 Replies
LEARN ABOUT HPUX
fs_wrapper
fs_wrapper(5) File Formats Manual fs_wrapper(5)
NAME
fs_wrapper - configuration and binary files used by file system administration commands
SYNOPSIS
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
DESCRIPTION
The commands listed in the SYNOPSIS can operate on different types of file systems. Each command (except for reads file system specific
configuration files that control the command's behavior, and invokes a file system specific binary file to do the actual work. FStype is
the file system type as optionally specified on the command line. If FStype is not given, then the file system type is determined from by
matching an entry in this file with a device provided with the command (see individual commands for details of usage).
Administrators may also define a default file system type for the above commands via the file If this file exists, and contains the line:
(e.g., then the above commands will assume the FStype given in unless an FStype is provided on the command line or is in The default file
system specification is provided to maintain compatibility with pre-10.0 invocations of the commands.
See the FILES section for a list of the files used.
WARNINGS
The configuration files are supplied by HP or by other file system vendors. They are not meant to be edited by System Administrators.
Corruption or removal of these files may lead to strange behavior, including the inability to boot.
The format of the configuration file is subject to change.
The file system specific binary files are not normally executed directly. However, if the configuration files become unusable, direct exe-
cution of these binary files may be a useful step in repairing and running the system again. The binary files accept the same arguments as
the commands by which they are executed.
The command is a special case. This command currently does not read a configuration file, and does not execute a file system specific
binary file if FStype is or The binary that handles these FStypes also processes other FStypes and calls the file system specific command
if appropriate.
For historical reasons, the binary files also handle and so there are no separate binary files for the latter two file systems.
The commands (except will not work if they are renamed, because they are symbolically linked to a single executable
FILES
FStype is the file system type as optionally specified on the command line. command is the name of the command.
File system specific binary files for the
and commands. There may be additional file system specific binary files in this directory that are
not associated with
File system specific binary files for the remaining commands.
There may also be other file system specific binary files in this directory that are not associated
with
Configuration files for each file system type.
File in which the default file system type can be defined.
If this file does not exist, there is no default file system type.
Static information about the file systems
SEE ALSO
ff(1M), fsck(1M), fsdb(1M), mkfs(1M), mount(1M), ncheck(1M), newfs(1M), quot(1M), quotacheck(1M), volcopy(1M), fstab(4).
fs_wrapper(5)