11-02-2010
Incomplete last line
I am getting these files from a windows server I believe and when I open in the vi editor it says incomplete last line, I have several files and when I merge them together for loading, if the file is incomplete it ignores the last line in the file while creating the combined file. If I make the file complete this situation will be avoided
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
Is there any way I can check a file for the linefeed character at the end of the file, and append one only if it is missing (ie. Incomplete last line)?
Need to do this because I need to write a script to process files FTP-ed over from various machines, which may or may not be... (1 Reply)
Discussion started by: ziyi
1 Replies
2. Shell Programming and Scripting
Hi folks,
I am using the join command to join two files on a common field as follows:
File1.txt
Adsorption|H01.181.529.047
Adult|M01.060.116
Children|M01.055
File2.txt
5|Adsorption|C0001674
7|Adult|C000001
6|Children|C00002
join -i -t "|" -a 2 -1 1 -2 2 File1.txt File2.txt
This... (7 Replies)
Discussion started by: s0460205
7 Replies
3. IP Networking
I've got a strange problem with a single mail sender (it is one of
those large free mail providers). My mail server works well with
thousands of senders but not this one, so we have made a connection
dump and it seems that the three way handshake is not completed
15:55:59.177431 IP... (0 Replies)
Discussion started by: 3wayTrouble
0 Replies
4. Shell Programming and Scripting
On Solaris & AIX, suppose there is a directory 'dir'.
Log files of size approx 1MB are continuously being
deposited here by scp command. I have a script that scans
this dir every 5 mins and moves away the log files that
have been deposited so far.
How do I design my script so that I pick up... (6 Replies)
Discussion started by: sentak
6 Replies
5. Solaris
On Solaris, suppose there is a directory 'dir'.
Log files of size approx 1MB are continuously being
deposited here by scp command. I have a script that scans
this dir every 5 mins and moves away the log files that
have been deposited so far.
How do I design my script so that I pick up *only*... (6 Replies)
Discussion started by: sentak
6 Replies
6. Shell Programming and Scripting
How do I find through script if a contains "incomplete last line".
If it does then only insert a new line character as::
echo "" >> filename.txt (4 Replies)
Discussion started by: PRKS
4 Replies
7. Shell Programming and Scripting
#!/bin/bash
DIR=/dir/$(date +%y%m)
|| mkdir "$DIR"
for D in $@ # obtem os argumentos
do
cp /usr/home/backup
if backup=null then
mkdir backup
done
How can I complete that script, that's not value, can someone help me complete this...
The point of the program is:
- If the... (1 Reply)
Discussion started by: strshel
1 Replies
8. UNIX for Dummies Questions & Answers
Hello,
Since i am new in shell scripting, i need some help from you guys. :rolleyes:
I am trying to implement an automata that reflects the attached photo..
The main idea behind is to take an array of (0 & 1)s from the user and terminate it by "end". Then, the string is send to the function... (1 Reply)
Discussion started by: Geekie
1 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Please help with the following example.
I want to keep all people in the data, who at least have Firstname or Lastname or both and at least 1 row of Details. So, Person4 lacking both Firstname and Lastname will be deleted, Person5 with no Details will be deleted.
Firstname,Lastname... (3 Replies)
Discussion started by: ritakadm
3 Replies
LEARN ABOUT DEBIAN
passepartout
PASSEPARTOUT(1x) PASSEPARTOUT(1x)
NAME
Passepartout - an XML-based desktop publishing application
SYNOPSIS
passepartout [options] files...
DESCRIPTION
Passepartout is an open source desktop publishing application. The goal is to provide a simple and user-friendly, yet powerful tool for
creating printed material. Passepartout combines a WYSIWYG layout editor with a high-quality typesetting engine.
You do not use Passepartout for writing text, because it is only a layout editor. Basically speaking, Passepartout is in the business of
taking the different parts that make up a page, such as text, photos, graphics, and "gluing" them on piece of paper. Passepartout can
import from several different bitmapped image formats as well as EPS files. you write the text in your favorite text editor (e.g. Emacs or
VI) in an XML-based format.
OPTIONS
-h, --help
Show summary of options.
-v, --version
Show version number.
-V Be verbose.
-d Show debugging messages.
SEE ALSO
xml2ps(1)
AUTHOR
This manual page was originally written by Gaudenz Steinlin <gaudenz@soziologie.ch>, for the Debian project (but may be used by others).
January 12, 2004 PASSEPARTOUT(1x)