02-19-2016
The
3 is a file descriptor used to open the input file on, and read from.
man bash:
Quote:
Redirecting Input
Redirection of input causes the file whose name results from the expansion of word to be opened for reading on file descriptor n, or the standard input (file descrip‐
tor 0) if n is not specified.
The general format for redirecting input is:
[n]<word
Default fds are 0: stdin, 1: stdout, 2: stderr.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can u see the code below.
set xyz = `cat testt1.txt | awk '/-----/{\
print $1 }\
' | tail -1`
I need to execute it in c shell . What is wrong with the above command.
When i write everything on a single line then it is working.
Can anybody help me . (0 Replies)
Discussion started by: nani_g
0 Replies
2. UNIX for Dummies Questions & Answers
Dear Unix Guru,
I have several directories as below
/home/user/
dir1
dir2
dir3
Each directory has different size. I want to print each directory size (Solaris command du -hs .)
Can you please guide me how to achieve this?
Thanks
Bala (2 Replies)
Discussion started by: baluchen
2 Replies
3. UNIX for Dummies Questions & Answers
I need a command, which could run mutliple commands from a file.
Let's say, I have
mv fileA1 fileB1
mv fileA2 fileB2
.....
mv fileA20 fileB20
I put these commands in a file, then I need a command to run the file as a whole so that I don't need to type 20 times...
Anyone tell me how to... (8 Replies)
Discussion started by: kaixinsjtu
8 Replies
4. Shell Programming and Scripting
I came across the command string on https://www.unix.com/shell-programming-scripting/141885-awk-removing-data-before-after-pattern.html which was what I was looking for to be able to remove data before a certain pattern. However, outputting the result to a file seems to work on an individual basis... (4 Replies)
Discussion started by: HLee1981
4 Replies
5. Shell Programming and Scripting
Hi all,
I am trying to create a shell script from solaris 10 server to run a command into multiple specific value in one file. The command is related to Oracle/Sun JES2005Q4 directory server.
#this is the command,
#from path /jes/ds/slapd-rldap1
./ns-inactivate.pl -h mldap1 -p 389 -D... (12 Replies)
Discussion started by: Mr_47
12 Replies
6. Ubuntu
Hi,
I would like to ask if someone knows or accomplished this task in the terminal multiplexer in a single window with multiple splitted pane:
In the script run multiple command at the same time in diff splitted pane or simulatneously.
As an example: I would like to run iptraf, iotop, htop,... (2 Replies)
Discussion started by: jao_madn
2 Replies
7. UNIX for Dummies Questions & Answers
Normally i would do this-
cd abc
ls -ltr
I wish to run above command in a single line, like this-
cd abc | ls -ltr
But above command doesn't works, it simply runs the second command, ignoring the 1st one.
:confused: (4 Replies)
Discussion started by: boy18nj
4 Replies
8. Shell Programming and Scripting
Dear folks
I have two data set which there names are "final.map" and "1.geno" and look like this structures:
final.map:
gi|358485511|ref|NC_006088.3| 2044
gi|358485511|ref|NC_006088.3| 2048
gi|358485511|ref|NC_006088.3| 2187
gi|358485511|ref|NC_006088.3| 17654
... (2 Replies)
Discussion started by: sajmar
2 Replies
9. Shell Programming and Scripting
Hello,
I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out.
I am specifically facing issues while running for loops.
I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
Discussion started by: mohit_vardhani
2 Replies
10. Shell Programming and Scripting
Hi All,
How can i run a single command on multiple servers with or without giving credentials.
I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server.
I tried below code... (9 Replies)
Discussion started by: darling
9 Replies
LEARN ABOUT HPUX
tsm.lpadmin
tsm.lpadmin(1M) tsm.lpadmin(1M)
NAME
tsm.lpadmin - add or remove a printer for use with tsm(1)
SYNOPSIS
printer model
printer
DESCRIPTION
is used to add (or remove) a printer to the LP spooling system when the printer is connected to the system through a terminal running the
Terminal Session Manager (see tsm(1)). is a shell script that uses in the normal way but also creates a named pipe to which LP output is
directed (see lpadmin(1)). This named pipe is opened by TSM and data flowing from it is sent to the printer through the terminal.
Options
recognizes the following options:
Names a printer to be created with an associated pipe.
If is used, must also be specified.
Selects a model interface program for
printer. model is one of the model interface names supplied with the LP software (see the Models topic in the lpad-
min(1)) manual entry. If is used, must also be specified.
Removes printer from the LP system. No other options are allowed with
Restrictions
To use you must be user or
AUTHOR
was developed by HP.
FILES
SEE ALSO
lpadmin(1M), tsm(1).
tsm.lpadmin(1M)