10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am doing FTP from a server and getting below ERROR:WARNING! 16126 bare linefeeds received in ASCII mode
File may not have transferred correctly.
I looked into web and found that I may need to change the mode to binary, but when I do so the records are not in readable format...So need the file... (10 Replies)
Discussion started by: joshilalit2004
10 Replies
2. UNIX for Dummies Questions & Answers
Hi Everybody! First post! Totally noobie.
I'm using the terminal to read a poorly formatted book.
The text file contains, in the middle of paragraphs, hyphenation to split words that are supposed to be on multiple pages. It looks ve -- ry much like this.
I was hoping to use grep -v " -- "... (5 Replies)
Discussion started by: AxeHandle
5 Replies
3. Shell Programming and Scripting
I need to take a report text file that is output from vendor software and there are some pages which have less then the normal amount of lines. I need to add these missing line feeds as there is a merge program that reads this file in fixed character and line mode template to output the final PDF... (6 Replies)
Discussion started by: rnygren
6 Replies
4. Programming
i have a problem in Use static variables in Qt C++ under CentOS 5.5
i need to pass a variable from GUI to class all function are static.
it always give me that error error: undefined reference to strChar
class QPython : public QObject
{
private:
public:
QString strChar;
static PuObject*... (1 Reply)
Discussion started by: HanyM.Magdy
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I dont know whether it is the right space to put it... but didnt found related Embedded.
I want to start learning Embedded systems in Unix, It would be greatly appreciable if someone could help me to start off ....
Thanks (0 Replies)
Discussion started by: Deei
0 Replies
6. Shell Programming and Scripting
I'm running into a problem with a differential backup script written in GNU Bash 3.0 - the following stripped down code demonstrates the problem quite nicely.
$ DATE="last tuesday"
$ date --date="$DATE"
Tue Jan 6 00:00:00 PST 2009
So far so good.
$ CMD="date --date=\"$DATE\""
$... (6 Replies)
Discussion started by: vertigo23
6 Replies
7. Shell Programming and Scripting
Hey there - a bit of background on what I'm trying to accomplish, first off. I am trying to load the data from a pipe delimited file into a database. The loading tool that I use cannot handle embedded newline characters within a field, so I need to scrub them out.
Solutions that I have tried... (7 Replies)
Discussion started by: bbetteridge
7 Replies
8. Shell Programming and Scripting
Hi,
I am putting the finishing touches on a shell script.
I have the following which works FINE:
if ] && ]
then
/bin/mail -s "Illegal Loggon Attempts on MAIL" sysadmin@ghf.com < final_email.tmp
fi
However, I need to make several else clauses and the interpreter complains... (1 Reply)
Discussion started by: mojoman
1 Replies
9. Shell Programming and Scripting
I need to write a script that maintains many directories. I was wondering is there is a way to create a list of the directories inside a script so that you can then use “while read line” to perform different commands for each directory.
Something like this
#!/bin/sh
MYLIST:
/dir1
/dir2... (1 Reply)
Discussion started by: zasxes
1 Replies
10. Programming
Anyone know any good sources (books, urls, etc) for learning embedded programming, for example with Tornado from Wind River? (3 Replies)
Discussion started by: TioTony
3 Replies
UNBLOCK_DLG(1) General Commands Manual UNBLOCK_DLG(1)
NAME
unblock_dlg - Insert linefeeds into an optional-format Digital Line Graph (DLG) file
SYNOPSIS
unblock_dlg [-L]
DESCRIPTION
The drawmap program processes USGS optional-format Digital Line Graph (DLG) files (along with other types of files) to produce customized
maps. Drawmap is able to read these files in their native format. However, since the files usually don't contain any linefeeds, they are
difficult for a human to read. Unblock_dlg filters a DLG file and inserts linefeeds for human readability. It takes input from the stan-
dard input and writes to the standard output. The input data must be in uncompressed form, not in gzip-compressed form. Also, unblock_dlg
does not work with SDTS DLG files.
Unblock_dlg normally takes no options, but, if you use the "-L" option, the program will print out some license information and exit.
Some DLG files already have embedded linefeeds. Unblock_dlg makes a feeble attempt to detect these files and abort. If the detection
fails, the results are likely to be garbled, so it is wise to check the format of each file first. The drawmap program, with the "-i"
option, will attempt to tell you whether a file contains linefeeds or not.
The intended use of unblock_dlg is simply to let you conveniently examine the files to see what is in them. However, if you are in the
mood for adventure, or if you need to repair a defective file, you can use unblock_dlg to make the file easy to edit, then you can edit the
file as desired. Drawmap can still process the files after linefeeds are inserted, but will become confused if any line (including the
linefeed) is more than 80 characters long. Drawmap may also become confused if you make any significant changes to the format of the file.
You can use this capability to remove selected items from DLG files, when those items cause problems. You may even be able to repair
faulty data. However, you need to be familiar with the content and structure of DLG files in order to do this effectively. You also need
to remember that drawmap depends on DLG files having a predictable structure, and it won't properly parse files that violate this pre-
dictability. Do this sort of thing only if you know what you are doing, or if you have a lot of free time on your hands.
It should be noted that you can obtain a similar effect by using the command recommended by the USGS:
dd if=inputfilename of=outputfilename ibs=8000 cbs=80 conv=unblock
I prefer the unblock_dlg command because it simply replaces the last byte of each record with a linefeed. This lets me easily tell how
long the original records were. The effect of unblock_dlg or dd can be undone by typing:
dd if=inputfilename of=outputfilename ibs=8000 cbs=80 conv=block
You may come across files that have a linefeed in the 81st byte. Drawmap doesn't like these, both because it can't tell (within the space
of the first 80-byte record) whether the file contains linefeeds or not, and because the records exceed the maximum record length of 80
bytes. You may be able to repair such files by blocking them with the above dd command.
SEE ALSO
unblock_dem(1), drawmap(1)
Jul 24, 2001 UNBLOCK_DLG(1)