10-04-2007
Quote:
Originally Posted by
dave_nithis
Junk - As I said unwanted characters including backslash
We don't know what you don't want, do you mean all non numeric characters?
Is it always a single character at the end?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have this file which has some octal NULL characters (\000). I need to replace these characters with an ASCII NULL.
I've tried using Perl, the UNIX tr command..
History of this
I received a COBOL generated file, ran the od command to convert to a xxx byte per record file.
Now,... (3 Replies)
Discussion started by: uchachra
3 Replies
2. Shell Programming and Scripting
How can i clear all space characteres for a long file at the end of each line? (3 Replies)
Discussion started by: osymad
3 Replies
3. UNIX for Advanced & Expert Users
Hi, I've got a file where in the middle of the record is a $ end of line character, visible only when I open the file in vi and do :set list. How to I get rid of the character in the middle and keep it at the end. The middle $ character always appears after SW, so that can be used to tag it.... (3 Replies)
Discussion started by: bwrynz1
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All
i need to delete a recurring word from point "n" till end of the file. there are other words in this file so i cannot use `dG`, can anyone help me out?
Kind regards
Brian (4 Replies)
Discussion started by: brian112
4 Replies
5. Shell Programming and Scripting
I have a text file with two coulmn
first column is just used in to show the line number, these line number are not there in the real file.
I want to delete the line 16(in this file) here, even tough there is no data inside it . this empty line is causing me a problem by throwing me garbage... (12 Replies)
Discussion started by: shashi792
12 Replies
6. Shell Programming and Scripting
Hi Guys,
I have a quetion which was already discussed in the forum, but for some reason all approches suggested fail for me.
I have a file which have blank lines at the body of the text as well as at the end. I need to delete ONLY blank lines at the end. Unfortunatly the approach below does not... (5 Replies)
Discussion started by: aoussenko
5 Replies
7. Shell Programming and Scripting
here is the contents of bigfile.sql
CREATE TABLE `Table11` (
`id` int(11) NOT NULL ,
`entityName` enum('Lines','EndUsers') COLLATE utf8_unicode_ci NOT NULL,
`parentAllianceMigrationProjectId` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2000 DEFAULT CHARSET=utf8... (30 Replies)
Discussion started by: vivek d r
30 Replies
8. Shell Programming and Scripting
Hello Everyone,
I need a help from experts of this community regarding one of the issue that I am facing with shell scripting.
My requirement is to append char's at the end of each line of a file. The char that will be appended is variable and will be passed through command line.
The... (20 Replies)
Discussion started by: Sourav Das
20 Replies
9. Shell Programming and Scripting
Hello,
I'm works on Ubuntu server
My goal : I would like to read file line per line, but i want to started at the end of file.
Currently, I use instructions :
while read line;
do
COMMAND
done < /var/log/apache2/access.log
But, the first line, i don't want this. The file is long... (5 Replies)
Discussion started by: Fuziion
5 Replies
10. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT DEBIAN
path2listing
PATH2LISTING(1) General Commands Manual PATH2LISTING(1)
NAME
path2listing - script facilitating the conversion to managing gconf configuration sources with desktop-profiles
SYNOPSIS
path2listing [options]
DESCRIPTION
This script takes a single gconf path file (the systemwide one, i.e. /etc/gconf/2/path, when not told otherwise) and reads through it in
order to create an ordered list of known configuration sources (it will recurse into included path files when necessary). Using that
ordered list it will then create a desktop-profiles_path2listing.listing file containing metadata for all known configuration sources,
assigning a precedence value to each encountered configuration source so that:
a) the order of sources is the same
b) there is space between the precedence values of the various sources to allow for inclusion of additional profiles in the future.
c) all mandatory sources have a positive precedence value, and all non-mandatory sources have a negative precedence value
In addition to generating the desktop-profiles_path2listing.listing file, this script will also replace the converted path file by one that
assumes that desktop-profiles manages all configuration sources (NOTE: a backup copy of all changed files is made, so you can always go
back to the previous situation).
OPTIONS
-d,--distance
distance between the precedence values of each successive pair of configuration sources (defaults to 50), the idea being that you
leave some space to insert future sources.
-f, --file
path file to convert (defaults to /etc/gconf/2/path)
-h, --help
display the help message
-o, --output-file
file to put the generated metadata in (defaults to /etc/desktop-profiles/desktop-profiles_path2listing.listing). If this file exists
a backup copy will be made prior to overwriting it.
--no-replace-file
don't replace the path file we're converted with one assuming desktop-profiles manages activation
FILES
/etc/gconf/2/path - systemwide gconf path file, default path file to convert
/etc/desktop-profiles/desktop-profiles_path2listing.listing - default name for the file containing the generated metadata
AUTHOR
This manual page was written by Bart Cornelis <cobaco@skolelinux.no>.
SEE ALSO
desktop-profiles(7)
desktop-profiles May 07, 2005 PATH2LISTING(1)