Hi,
Is it possible to accept a filename as command line parameter and then write to that file using command redirection? i tried the below script.
outputfile=`echo $1`
echo "Writing to file" > 'echo $outputfile'
exit $returncode
but it isnt working. is there any other way to... (9 Replies)
hi
i have a file contains data
Line timeout:
START->SIGNON_REPLY,
SIGNON_REPLY->SIGNON,
Received SOT req
SOT request:
SIGNON->SOT_REPLY,
SOT_REPLY->DATA_RECEIVE,
DATA_RECEIVE->EOD,
i need to write into one line , separated by commas
please help
thanks
Satya (2 Replies)
I need to write value of variable $version at a particular line in a text file.
Line number is determined by another variable &line......I don't know how to do it in shell script ... (2 Replies)
Hi,
I have to write s script to check an input file for invalid characters. In this script I have to find the exact line of the invalid character. If the input file contain 2 invalid character sat line 10 and 17, the script will show the value 10 and 17. Any help is appreciated. (3 Replies)
Dear All,
I have a question that's been difficult to get an answer to.
I often write command line loops, e.g. find files, print name, grep for term, apply sed, etc
I use both zsh and bash.
When I write a loop e.g.
for line in `more myfile.txt`
> do
> echo $line
> done
but... (2 Replies)
Given a particular line number and a corresponding column number, can i write something in the file during run time?
For example x=1 and during runtime i want to write the value of x in column 100 of every line of a given file, then how shud that be done?
Thanks (9 Replies)
Hi,
I have 1000 files names data1.txt through data1000.txt inside a folder. I want to write a script that will take each first line from the files and write them as output into a new file. How do I go about doing that? Thanks! (2 Replies)
Hi,
I have a file whihc looks like
file_1 100 200
file_2 200 300
file_4 400 500
as the file_3 is missing so I want to replace it by
file_3 0 0
the final output would look like
file_1 100 200
file_2 200 300
file_3 0 0
file_4 400 500
Any help is highly appreciated.
Regards, (3 Replies)
Hello
I am facing a very unique problem and not able to understand why. I have written a function which will check header of the file. If header is present good else it will write the header on top
def writeHeaderOutputCSV(fileName):
# See if the file exist already
try:
... (0 Replies)
Discussion started by: radioactive9
0 Replies
LEARN ABOUT MOJAVE
pstopdf
pstopdf(1) BSD General Commands Manual pstopdf(1)NAME
pstopdf -- convert PostScript input into a PDF document.
SYNOPSIS
pstopdf [inputfile] [-o outname] [-l] [-p]
DESCRIPTION
pstopdf is a tool to convert PostScript input data into a PDF document. The input data may come from a file or may be read from stdin. The
PDF document is always written to a file. The name of the output PDF file is derived from the name of the input file or may be explicitly
named using the -o option.
Flags:
-o outname
The name of the output file to create. If an explicit file name is not supplied, the output file will be created in the current
directory and named foo.pdf for an input file named foo.ps
-l Specifies that any messages generated during file conversion be written to a log file. For an output file named foo.pdf the generated
log file is foo.pdf.log rather than generated to stdout. If there are no messages, the log file is not generated.
-p Generates a simple progress message to stdout at the end of each page. Because conversion of complex or lengthy PostScript input can
take time, it is sometimes useful to see that progress is being made. Progress messages are always written to stdout even when the -l
(log file) option is specified.
EXAMPLES
pstopdf inputfile.ps Creates a PDF file named inputfile.pdf from the PostScript data in the input file inputfile.ps
pstopdf -o outputfilename Creates a PDF file named outputfilename from the PostScript data read from stdin.
Apple Computer, Inc. May 31, 2019 Apple Computer, Inc.