I have a file with the below data, i would like to remove the end blank lines with no data. I used the below commands but could not able to succeed, could you please shed some light.
Commands Used:
sed '/^$/d' input.txt > output.txt
grep -v '^$' input.txt > output.txt
input.txt file... (5 Replies)
I have a .xml file, where i need some output. The xml file is like:
Code:
<?******?></ddddd><sssss>234</dfdffsdf><sdhjh>534</dfdfa>.........
/Code
I need the output like:
code
234
534
.
.
.
/code
How can i do it? (5 Replies)
Hi,
I got a log file and I want to grep out a list of unwanted line which are IP's.
Basiclly I want everything ecxept the ip's from my list.
If I do a
while read line
do
grep -v $ip_from_my_list logfile
done <ip_list
it just grep's one IP at a time and repeats. :(
Thanks for... (3 Replies)
I am running a grep query for searching a pattern, and the output is quite huge. I want only the last 200 lines to be displayed, and I am not sure if tail will do the trick (can tail read from std in/out instead of files?).
Please help me out. (1 Reply)
Ok, i have a .kml file that that i want to trim down and get rid of the rubbish from. its formatted like so:
<Placemark>
<name><!]></name>
<description><!</b><br/>Frequency: <b>2437</b><br/>Timestamp: <b>1304892397000</b><br/>Date: <b>2011-05-08... (11 Replies)
Thanks everyone. I got that problem solved.
I require one more help here. (Yes, UNIX definitely seems to be fun and useful, and I WILL eventually learn it for myself. But I am now on a different project and don't really have time to go through all the basics. So, I will really appreciate some... (6 Replies)
Hi.
I need to filter lines based upon matches in multiple tab-separated columns. For all matching occurrences in column 1, check the corresponding column 4. IF all column 4 entries are identical, discard all lines. If even one entry in column 4 is different, then keep all lines.
How can I... (5 Replies)
Hello,
I need a little help with the following:
I'm using AWK to read input from a comma-seperated value file, and only printing certain fields like so:
awk -F "," '{print $1,$3,$6}' /list.csv | tail -1
Which outputs the following:
server1 APPID OS
I run into a problem... (8 Replies)
I have a file contains data with non-printing characters. i have used cat -v filename to display whole data with non-printing characters also.
However, i need lines with non-printing characters into seperate file. My file is huge and looks like i have to manully find lines using cat -v filename |... (3 Replies)
Discussion started by: JSKOBS
3 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.