11-16-2017
What output do you get from
bash -c 'type tee'
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
could someone pls enlighten me on the difference between the "root" package and "usr" package?
Like in this example:
pkginfo -l SUNWGtku | grep -i desc
DESC: GTK - The GIMP Toolkit (Usr)
and
pkginfo -l SUNWGtkr | grep -i desc
DESC: GTK - The GIMP Toolkit (Root)... (6 Replies)
Discussion started by: masloff
6 Replies
2. UNIX for Dummies Questions & Answers
what if the difference between
#!/bin/sh
and
#!/bin/bash
I wrote a script with the second heading now when i change my heading to the first one ...the script is not executing well....im not getting the required output....any solution to this problem...or do i have to start the... (3 Replies)
Discussion started by: xerox
3 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. UNIX for Dummies Questions & Answers
First post here, so hopefully all guidelines are followed, and thanks in advance for any replies.
I'm working on a shell script(BASH) that processes a csv file and performs various tasks with the data. All is well, except I want to use 'tee' to send output from 'wc' to a file as well as pipe it... (4 Replies)
Discussion started by: jazzmusic
4 Replies
5. Shell Programming and Scripting
BACK STORY:
I have a script build.py . (It's for creating the ISO file for a special edition of Swift Linux.) This build.py script executes the mintConstructor.py script that I use to modify the Regular Swift Linux ISO to get the special edition Swift Linux ISO. The lines of the script that... (2 Replies)
Discussion started by: swiftlinux
2 Replies
6. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
7. Homework & Coursework Questions
Greetings, everyone.
1. The problem statement, all variables and given/known data:
I'm running into a problem with my program concerning the actual output it does. When I open the file that gets the output, it contains
a large number of hex(?) variables and not what the user wants. The... (0 Replies)
Discussion started by: assignmentoper
0 Replies
8. Shell Programming and Scripting
I have code fragment like
{
aa
bb
cc
} > $LOG
aa bb cc, all call function "ff", I want "ff" to print on the screen,but others do not print on the scree, is there a method? I can't use "tee", becasue tee I meet the write "error"
ff()
{
echo "hello"
} (2 Replies)
Discussion started by: yanglei_fage
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
How to append content into a file using tee command
echo " file1 is archived"| tee -a archive.txt
echo " file2 is archived"| tee -a archive.txt
echo " file3 is archived"| tee -a archive.txt
how to append content as new rows in the archive.txt
Thanks,
Srinadh. (4 Replies)
Discussion started by: srinadhreddy27
4 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
io::tee
Tee(3pm) User Contributed Perl Documentation Tee(3pm)
NAME
IO::Tee - Multiplex output to multiple output handles
SYNOPSIS
use IO::Tee;
$tee = IO::Tee->new($handle1, $handle2);
print $tee "foo", "bar";
my $input = <$tee>;
DESCRIPTION
"IO::Tee" objects can be used to multiplex input and output in two different ways. The first way is to multiplex output to zero or more
output handles. The "IO::Tee" constructor, given a list of output handles, returns a tied handle that can be written to. When written to
(using print or printf), the "IO::Tee" object multiplexes the output to the list of handles originally passed to the constructor. As a
shortcut, you can also directly pass a string or an array reference to the constructor, in which case "IO::File::new" is called for you
with the specified argument or arguments.
The second way is to multiplex input from one input handle to zero or more output handles as it is being read. The "IO::Tee" constructor,
given an input handle followed by a list of output handles, returns a tied handle that can be read from as well as written to. When
written to, the "IO::Tee" object multiplexes the output to all handles passed to the constructor, as described in the previous paragraph.
When read from, the "IO::Tee" object reads from the input handle given as the first argument to the "IO::Tee" constructor, then writes any
data read to the output handles given as the remaining arguments to the constructor.
The "IO::Tee" class supports certain "IO::Handle" and "IO::File" methods related to input and output. In particular, the following methods
will iterate themselves over all handles associated with the "IO::Tee" object, and return TRUE indicating success if and only if all
associated handles returned TRUE indicating success:
close
truncate
write
syswrite
format_write
formline
fcntl
ioctl
flush
clearerr
seek
The following methods perform input multiplexing as described above:
read
sysread
readline
getc
gets
eof
getline
getlines
The following methods can be used to set (but not retrieve) the current values of output-related state variables on all associated handles:
autoflush
output_field_separator
output_record_separator
format_page_number
format_lines_per_page
format_lines_left
format_name
format_top_name
format_line_break_characters
format_formfeed
The following methods are directly passed on to the input handle given as the first argument to the "IO::Tee" constructor:
input_record_separator
input_line_number
Note that the return value of input multiplexing methods (such as "print") is always the return value of the input action, not the return
value of subsequent output actions. In particular, no error is indicated by the return value if the input action itself succeeds but
subsequent output multiplexing fails.
EXAMPLE
use IO::Tee;
use IO::File;
my $tee = new IO::Tee(*STDOUT,
new IO::File(">tt1.out"), ">tt2.out");
print join(' ', $tee->handles), "
";
for (1..10) { print $tee $_, "
" }
for (1..10) { $tee->print($_, "
") }
$tee->flush;
$tee = new IO::Tee('</etc/passwd', *STDOUT);
my @lines = <$tee>;
print scalar(@lines);
AUTHOR
Chung-chieh Shan, ken@digitas.harvard.edu
COPYRIGHT
Copyright (c) 1998-2001 Chung-chieh Shan. All rights reserved. This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
SEE ALSO
perlfunc, IO::Handle, IO::File.
perl v5.12.3 2001-03-10 Tee(3pm)