08-27-2008
Redirect Output
Hi,
I would like to list files: ls *.hdf
But I would like a copy of the output directed to the screen, but also APPENDED to a text file: test.txt
I have tried:
ls *.hdf | tee test.txt
However, that will just write over everything already existing in test.txt. How can I append the output of the ls command to test.txt, but also print a copy to the screen?
10 More Discussions You Might Find Interesting
1. Solaris
Hi all,
i type a command along with dtterm what i would like to have is that the output of the command to be shown in the new terminal .
Any Idea on how to acheive this? (0 Replies)
Discussion started by: Sayantan
0 Replies
2. Shell Programming and Scripting
Hi all, I have a script which call a java program, the logging (to log file) in the program is done using log4j. However, as a safety measure, i still choose to direct standard error to another log file as follow
/usr/bin/java -classpath ${classpath} -Xmx128m TestingProgram 2>>... (1 Reply)
Discussion started by: mpang_
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all!!
is possible to assign the output of some command to filename, i.e.
grep_output.txt
Otherwise, I want to open a new file which name is inside another, how can I do it?
Thanks a lot! (7 Replies)
Discussion started by: csecnarf
7 Replies
4. AIX
Hi ,
How do i redirect output of topas to a file.
i did not find any such option in topas command.
Regards,
Ashok (2 Replies)
Discussion started by: ashokd001
2 Replies
5. Shell Programming and Scripting
Hi
i am compiling a source code by make command.
i want to redirect the output of make to a file but at the same time i want to see the output in terminal.
how to do this ?.
please suggest your idea.
thanks in advance.
Saravana
---------- Post updated at 05:24 PM ----------... (2 Replies)
Discussion started by: tsaravanan
2 Replies
6. UNIX for Dummies Questions & Answers
Hi evreybody
In my program i work with file compressed with 7zip
I need to decompress these file
I've red the man page of p7zip which is very short (maybe too short)
Is there another program to work whit 7zip files
I need options like
redirect output (p7zip decompress file in the... (1 Reply)
Discussion started by: the_bouk
1 Replies
7. Shell Programming and Scripting
Hi All,
I want to redirect only the file names to a new file from the ls -ltr directroy. how Can i do it.
my ls -ltr output will be as below.
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 event.podl
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 xyz.podl
I want my new file... (6 Replies)
Discussion started by: girish.raos
6 Replies
8. Shell Programming and Scripting
HI Guys,
My requiement is to redirect output and error of sftp to a file.I have gone through few solutions given in this forum and got the alternate solution but not the one i want.
Below piece of code is not working ..
$ sftp user@server<<EOF 2>&1 >temp.txt
> cd <dir>
> ls
> EOF... (0 Replies)
Discussion started by: mohanpadamata
0 Replies
9. Shell Programming and Scripting
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Discussion started by: aix_admin_007
4 Replies
10. Shell Programming and Scripting
Hi Guys,
I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts.
I used below but it is not working:
OFILE=/home/home1/report1
echo "report1 details" > $OFILE
=/home/home1/1.sh > $OFILE
echo... (7 Replies)
Discussion started by: Vivekit82
7 Replies
LEARN ABOUT REDHAT
raw2hdf
raw2hdf(1) Emulators raw2hdf(1)
NAME
raw2hdf - Create an .hdf hard disk image from a raw data file
SYNOPSIS
raw2hdf rawfile hdffile
DESCRIPTION
raw2hdf converts a binary dump of a hard disk's data into an IDE disk image in .hdf format for use with Sinclair ZX Spectrum emulators.
OPTIONS
-v version
specifies the version of .hdf image to be created. Valid values are `1.0' for a version 1.0 file and `1.1' for a version 1.1 file.
Defaults to creating version 1.1 files.
rawfile
specifies a raw data file (or block device corresponding to an actual disk) to be converted.
hdffile
specifies the .hdf file to create.
NOTES
Since raw2hdf has no knowledge of the geometry of the disk from which the original image was taken (indeed, the input file need not origi-
nate from a real IDE disk at all), there is no guarantee that the information contained in the .hdf file header accurately represents the
original disk. However, it will attempt to construct a header that is consistent with the size of the image, to produce an .hdf file which
is functionally equivalent.
BUGS
None known.
SEE ALSO
fuse(1), fuse-utils(1), libspectrum(3)
The .hdf format specification, at
http://www.ramsoft.bbk.org/hdfform.html.
The comp.sys.sinclair Spectrum FAQ, at
http://www.worldofspectrum.org/faq/index.html.
AUTHOR
Matthew Westcott (matthew@west.co.tt).
Version 1.0.0 16th December, 2010 raw2hdf(1)