04-01-2019
man bash:
Quote:
If |& is used, command's standard error, in addition to its standard output, is connected to command2's standard input through the pipe; it is shorthand for 2>&1 |
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
can anyone help to write data into a text file in bold format and rollback to actual format.
Thanks,
Regards,
Milton Y. (1 Reply)
Discussion started by: miltony
1 Replies
2. Shell Programming and Scripting
Hi,
I am a newbie to both Linux and this forum.
I was trying to pull out the data from a database but it is not showing up in the multiple lines, with my limited knowledge i linux u tried to format this but wasn't exactly getting what i wanted.
The screenshot below shows my problem.
... (2 Replies)
Discussion started by: Ninjaa
2 Replies
3. Homework & Coursework Questions
Im trying to come up with a simple shell script to display info about the current user.`pwd`; `date` ; `who am i`
I want to give the option to save all the data thats display by the commands to a log file. With a timestamp as the name of the file
This is where im stuck
echo "Would you like to... (3 Replies)
Discussion started by: eddieq20
3 Replies
4. Shell Programming and Scripting
Hi All,
I am having an XML tag like:
<detail sim_ser_no_1="898407109001000090"
imsi_1="452070001000090">
<security>ADM1=????</security>
<security>PIN1=????</security>
<security>PIN2=????</security>
... (2 Replies)
Discussion started by: ss_ss
2 Replies
5. Hardware
Hi,
I am working in device drivers. I am new to device drivers. i have invoked chardev.c.
the driver is insmoded. now i want to write something into this and i want to look what i have written. but i don't know how to write and see. please help me (0 Replies)
Discussion started by: boidi
0 Replies
6. Programming
Hi
I want to open a file and write data in the following manner.
Header
String 1 String 2
String 3 String 4
String 5 ... (4 Replies)
Discussion started by: AAKhan
4 Replies
7. Shell Programming and Scripting
I am fetching a database table in spool file and send that details as a email.
The Spooled file content is properly being displayed in UNIX.
See Example below :
ID|FILENAME |ABCDEF_DT |PROCESSED_DT |STATUS... (4 Replies)
Discussion started by: Ravi_007
4 Replies
8. Shell Programming and Scripting
hi..i would ask about how to write over data to new file with BASH.
so..assume my data looks like this :
11
12
13
14
15
...and so on. It's always line by line. and that's for the first file.
i want to write over those numbers into second file but by using space. so my second file should be... (5 Replies)
Discussion started by: syalala
5 Replies
9. Shell Programming and Scripting
Hi All,
I have the requirement in unix shell script.
I want to write the "ls -ltr" command out put to excel file as below.
Input :text file data :
drwxr-xr-x 5 root root 4096 Oct 2 12:26
drwxr-xr-x 2 apx aim 4096 Nov 29 18:40
drwxr-xr-x 5 root root 4096 Oct 2 12:26
drwxr-xr-x... (10 Replies)
Discussion started by: Balasankar
10 Replies
10. Shell Programming and Scripting
Hi,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies
LEARN ABOUT OPENDARWIN
tcl_setstdchannel
Tcl_GetStdChannel(3) Tcl Library Procedures Tcl_GetStdChannel(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_GetStdChannel, Tcl_SetStdChannel - procedures for retrieving and replacing the standard channels
SYNOPSIS
#include <tcl.h>
Tcl_Channel
Tcl_GetStdChannel(type)
Tcl_SetStdChannel(channel, type)
ARGUMENTS
int type (in) The identifier for the standard channel to retrieve or modify. Must be one of TCL_STDIN, TCL_STDOUT, or
TCL_STDERR.
Tcl_Channel channel (in) The channel to use as the new value for the specified standard channel.
_________________________________________________________________
DESCRIPTION
Tcl defines three special channels that are used by various I/O related commands if no other channels are specified. The standard input
channel has a channel name of stdin and is used by read and gets. The standard output channel is named stdout and is used by puts. The
standard error channel is named stderr and is used for reporting errors. In addition, the standard channels are inherited by any child
processes created using exec or open in the absence of any other redirections.
The standard channels are actually aliases for other normal channels. The current channel associated with a standard channel can be
retrieved by calling Tcl_GetStdChannel with one of TCL_STDIN, TCL_STDOUT, or TCL_STDERR as the type. The return value will be a valid
channel, or NULL.
A new channel can be set for the standard channel specified by type by calling Tcl_SetStdChannel with a new channel or NULL in the channel
argument. If the specified channel is closed by a later call to Tcl_Close, then the corresponding standard channel will automatically be
set to NULL.
If Tcl_GetStdChannel is called before Tcl_SetStdChannel, Tcl will construct a new channel to wrap the appropriate platform-specific stan-
dard file handle. If Tcl_SetStdChannel is called before Tcl_GetStdChannel, then the default channel will not be created.
If one of the standard channels is set to NULL, either by calling Tcl_SetStdChannel with a NULL channel argument, or by calling Tcl_Close
on the channel, then the next call to Tcl_CreateChannel will automatically set the standard channel with the newly created channel. If
more than one standard channel is NULL, then the standard channels will be assigned starting with standard input, followed by standard out-
put, with standard error being last.
See Tcl_StandardChannels for a general treatise about standard channels and the behaviour of the Tcl library with regard to them.
SEE ALSO
Tcl_Close(3), Tcl_CreateChannel(3), Tcl_Main(3), tclsh(1)
KEYWORDS
standard channel, standard input, standard output, standard error
Tcl 7.5 Tcl_GetStdChannel(3)