hi everybody,
how do i open a txt file writen in unix on to a web page
so when i want to view the txt file that was generated from a shell program, that file is open on a web page
do i use the cat > filename.html command to do this, or is there another way
many thanks
:D (2 Replies)
I would like to append some statement into 1 single file so that it can be concatenate together in 1 word. I have tried >> but it will seperate my 2 statement into 2 rows.
# cat abc.txt cde.txt > result.txt
where abc.txt is "abcde" and cde.txt is "12345"
the result should come out as... (3 Replies)
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
I believe I used the cat command to append a file beside another file (instead of below it) but I did not document it any where and I can't remember exactly how I did it. Has anyone else done this? I have tried all the cat options individually with no luck. It may be a combination of options.
... (2 Replies)
I want to concatenate 100 files to one file and append file name in each record to find out which file it came from
for a in $(<shal_group)
do
cat $a >> bigoutput.group
The above code put all files in one file but i want file name appended to each file
Record should be like this... (3 Replies)
I have a file "sample.txt" with the content as below:
Hi
This is a Sample Text.
I need a single command using cat which serve the following purpose.
1.display the contents of sample.txt
2.append some text to it
3. and then exit
But, all should be served by a sinle... (1 Reply)
Hi.
How can i write a command on AIX like the one i did at linux that find string in a file and show me that string, and return 3 lines before and 4 lines after that string.
my linux command is:
/bin/cat <filename> | tail -150 | grep -B2 -A8 "<string to look for>"
Example:
/bin/cat ... (10 Replies)
Discussion started by: yechi_r
10 Replies
LEARN ABOUT MOJAVE
tiffutil
TIFFUTIL(1) BSD General Commands Manual TIFFUTIL(1)NAME
tiffutil - manipulates tiff files
SYNOPSIS
tiffutil <option> [<arguments>] [-out <outfile>]
DESCRIPTION
tiffutil lets you manipulate TIFF files. The list of options (also available by running the program without any options) follows:
tiffutil -none infile [-out outfile]
-lzw infile [-out outfile]
-packbits infile [-out outfile]
-cat infile1 [infile2 ...] [-out outfile]
-catnosizecheck infile1 [infile2 ...] [-out outfile]
-cathidpicheck infile1 [infile2 ...] [-out outfile]
-extract num infile [-out outfile]
-info infile
-verboseinfo infile
-dump infile
-none, -lzw, and -packbits options specify the compression format to be applied to the images in the TIFF file. -none specifies no compres-
sion; -packbits specifies PackBits compression; -lzw specifies standard Lempel-Ziv & Welch compression (no prediction scheme).
-cat allows combining multiple TIFF files into one. The images are copied without any change in tag values. If the real sizes (pixel size
divided by dpi) of the images being combined are not the same, a warning will be generated. This makes sure that NSImage can successfully
choose the right size image out of the generated TIFF file. Use -catnosizecheck to bypass the size check.
-cathidpicheck can be used to write an output file conforming to Apple's guidelines for resolution independent bitmap images, and will gener-
ate warnings if the supplied images do not have the recommended size relationship. For best results, ensure that the larger file has a file-
name of the form <basename>@2x.png.
-extract allows extracting an individual image from a TIFF file; specify num = 0 for the first image in the file.
-info prints information about TIFF images. -verboseinfo is the same, except most of the tables are displayed in full. -dump simply lists all
of the tags in the file without trying to interpret them; it is handy when trying to figure out why a TIFF file won't load or display prop-
erly.
For options which write images out, the output goes to "out.tiff" unless an output file name is specified after a -out keyword. This keyword
and the file must be the last items on the command line. -info, -verboseinfo, and -dump write their output to the standard output.
If there are multiple images in a TIFF file the specified operation will be performed on all of them.
SECURITY NOTE: This version of tiffutil SHOULD NOT be used with untrusted files.
CREDITS
Parts of tiffutil were based on the freely distributable "tiffcp" and "tiffinfo" programs written by Sam Leffler and made available with v3.0
of his excellent TIFF library. The TIFF library and the tiffcp and tiffinfo programs are:
Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
Copyright (c) 1991, 1992 Silicon Graphics, Inc.
macOS September 2, 2010 macOS