I/O redirection problem
From: Krit Kasemosoth (krit_kasemosoth_at_hotmail.com)
Date: 05/26/04
- Next message: Chris F.A. Johnson: "Re: I/O redirection problem"
- Previous message: Lew Pitcher: "Re: How to find ip address?"
- Next in thread: Chris F.A. Johnson: "Re: I/O redirection problem"
- Reply: Chris F.A. Johnson: "Re: I/O redirection problem"
- Reply: Stephane CHAZELAS: "Re: I/O redirection problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 May 2004 04:32:20 -0700
I have data file 'test.txt'. I want to search text in that file and
store
the result back to file 'test.txt'. The command that I execute is :
cat test.txt | grep monday > test.txt
I execute it on two machines that have same environment(same OS,
shell and utilities version).
The command work on one machine (result of execution store in
'test.txt') but not work on another machine ('test.txt' is empty).
What are the possible factors that make the command work ?
(Because the command redirect output back to original file
which must can not work)
This is a information of my two machines :
1. SunOS dev_24 5.8 Generic_108528-21 sun4u sparc SUNW,UltraAX-i2
2. SunOS ceres 5.8 Generic_117000-01 sun4u sparc
SUNW,Ultra-Enterprise
- Next message: Chris F.A. Johnson: "Re: I/O redirection problem"
- Previous message: Lew Pitcher: "Re: How to find ip address?"
- Next in thread: Chris F.A. Johnson: "Re: I/O redirection problem"
- Reply: Chris F.A. Johnson: "Re: I/O redirection problem"
- Reply: Stephane CHAZELAS: "Re: I/O redirection problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|