Contrary to what grep_me implied, you can use tee to write to more than just two files. The following example appends to 5 files and discards standard output:
Regards,
Alister
hi gurus ,,
I have multiple files with same file pattern..in a particular directory
for ex: file20061101.trf
file20061102.trf
file20061103.trf
Each of the file has a header as column names..
My questions is how can i eliminate the first row of each of these... (11 Replies)
Hi ,
Can you guys please help as I have list of files xaa, xab, xac.........xza for eg in which to perform load the 1st (xaa) and insert into table, then only proceed for the 2nd , 3rd and so forth.
In other words, before 1st one finished, 2nd one shall not load and insert to table, and so... (0 Replies)
I want to extraxt data from a html table
the html file is downloaded from
UG / PG Univ - Exam.Results April/May 2008
After processing the html file using sed i got the output like this
11305106082,RANJANI R,
CS1251,20,69,P
CS1302,20,45,P
EC1006,20,52,P
EC1351,20,53,P... (5 Replies)
Dear All,
can anybody help me out in generating a command that can be used to view the last line of multiples files.
e.g:
file 1 contains 100 records
file 2 contains 200 records
file 3 contails 300 records
now i need a command that can be used to display the last line of each... (7 Replies)
i need to compare three files in unix
a.txt b.txt c.txt
1 2 1
2 5 3
4 6 5
5 6
6
i need to insert a blank line in the file if i don't find a match
and put the items at the same column if found a match
The items in the files... (4 Replies)
Hi,
I have a directory full of *.txt files. I would like to print the last line of every file to screen.
I know you can use FNR for printing the first line of each file, but how do I access the last line of each file?
This code doesn't work, it only prints the last line of the last file:BEGIN... (5 Replies)
Hi,
We have a folder that has files in the following structure
abc.sql
def.sql
efg.sql
.
.
.
xyz.sql
I have to find a certain string (say "test") in each file and replace it with the name of the file. For eg. if "test" is present in abc.sql, I want to replace it with "test abc". If... (8 Replies)
Hi Forum.
I'm struggling to find a solution for the following issue.
I have multiple files a1.txt, a2.txt, a3.txt, etc. and I would like to insert a tab-delimited header record at the beginning of each of the files.
This is my code so far but it's not working as expected.
for i in... (2 Replies)
I am looking for help in processing of those options: '-n' or '-p'
I understand what they do and how to use them.
But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.)
I did try it and -n works on 2 files.
Question is:
- is it possible to... (6 Replies)
Discussion started by: alex_5161
6 Replies
LEARN ABOUT HPUX
tee
tee(1) General Commands Manual tee(1)NAME
tee - pipe fitting to copy standard output to file
SYNOPSIS
[file]...
DESCRIPTION
The command transcribes the standard input to the standard output and makes copies in the files.
Options
This option ignores interrupts.
This option appends the output to the
files rather than overwriting the files.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multibyte character code sets are supported.
RETURN VALUE
The command returns zero upon successful completion, or nonzero if the command fails.
EXAMPLES
Write a list of users to the screen and also append the list to the file
STANDARDS CONFORMANCE tee(1)