Sponsored Content
Full Discussion: Remove newlines
Top Forums UNIX for Dummies Questions & Answers Remove newlines Post 302890778 by RavinderSingh13 on Friday 28th of February 2014 01:27:41 PM
Old 02-28-2014
Hello,

That command works only for given input.


Thanks,
R. Singh
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk - need to remove unwanted newlines on match

Context: I need to remove unwanted newlines from a data file listing books and associated data. Here is a sample listing ( line numbers included ): 1 360762| Skip-beat! 14 /| 9781421517544| nb | 2008.| Nakamura, Yoshiki.| NAKAMUR | Kyoko Mogami followed 2 her true love Sho to Tokyo to... (6 Replies)
Discussion started by: Bubnoff
6 Replies

2. Shell Programming and Scripting

Transpose with two newlines as delimiter

Hi Guys, I have data in a file as follows: a 1 2 3 b 4 5 6 a 6 7 8 a 4 7 9 b 6 8 5 c 0 8 7 So the number of rows which have data is variable (2 for the first group, one for the second group and three for the third group), but the delimiters between the... (10 Replies)
Discussion started by: npatwardhan
10 Replies

3. Shell Programming and Scripting

Remove improperly placed newlines

Hello, there. I have a file that's a horrible, horrible mess. (Basically, it's an export from a firewall config.) The people who generated the file didn't think that putting a newline in the middle of a hostname would ever be a problem. It is. Here's an example of the stuff in the file: ... (2 Replies)
Discussion started by: mikesimone
2 Replies

4. Shell Programming and Scripting

sed remove newlines and spaces

Hi all, i am getting count from oracle 11g by spooling it to a file. Now there are some newline characters and blank spaces i need to remove these. pl provide me a awk/sed solution. the spooled file is attached. i tried this.. but not getting req o/p (6 Replies)
Discussion started by: rishav
6 Replies

5. Shell Programming and Scripting

Delete newlines after every one space

Hi All, I have a file which looks like this: abc 3456 computer 3214 printer 0.9823 computer 3214 Can anyone please let me know how I can format my text like this? abc 3456 computer 3214 printer 0.9823 computer 3214 I know how to space to newlines using tr but don't know how to do... (4 Replies)
Discussion started by: shoaibjameel123
4 Replies

6. Shell Programming and Scripting

removing newlines after a certain word.

Hello! This is my first post here. I have a file with text like: A</title> B C</title> D I need to format it to: AB CD I am trying to use sed: sed 's/<//title>\n/ /g' file > newfile to delete </title> and the newline character, but the file is unchanged because there are... (3 Replies)
Discussion started by: DaytonCPS
3 Replies

7. Shell Programming and Scripting

Need help with eliminating newlines with Perl

Good morning, I need some help with getting rid of newlines with the output from a MYSQL query and putting the information into the right format that I need. Here is the script as it is today: #!/usr/bin/perl my $uda = system("/opt/incontrol/mysql/bin/mysql -u root -ppassword... (2 Replies)
Discussion started by: brianjb
2 Replies

8. UNIX for Dummies Questions & Answers

Using find with awk to remove newlines

I want to list all html files present in a directory tree, the remove the newline and get one string with a space between files find /home/chrisd/Desktop/seg/geohtml/ -name '*.html' | awk BEGIN{FS=\r} '{print}' ---------- Post updated at 06:47 PM ---------- Previous update was at 06:25 PM... (5 Replies)
Discussion started by: kristinu
5 Replies

9. UNIX for Beginners Questions & Answers

Remove newlines and carriage return from a csv file using UNIX

I need to remove new lines and carriage returns from csv file. Is there anything other than sed and gwak by which we could achieve this ? Any suggestions ? (3 Replies)
Discussion started by: A_Gaddale
3 Replies

10. Shell Programming and Scripting

UNIX file with Newlines

Hi Friends, I have a data file with new lines. How to remove the newlines and should be showed in one line. I tried using the command tr -d '\n' filename sed 's/\n//g' file name Ex: 1 abc hyd is actual record but in our scenario showing it as 1 abc hydthis record should be like... (5 Replies)
Discussion started by: victory
5 Replies
KDOC(1) 						     KDOC Documentation System							   KDOC(1)

NAME
KDOC -- Programmers' Documentation Extraction and Generation Tool SYNOPSIS
kdoc [-DqpieaP] [-f format] [-n libname] [-d outdir] [-u url] [-l lib] kdoc [--help] kdoc [--version] DESCRIPTION
KDOC uses specially formatted comments in your C++ headers and CORBA IDL files to create cross-referenced documentation in various formats. KDOC can also correctly handle "signal" and "slot" specifiers as used by the Qt GUI Toolkit. EXAMPLES
kdoc -f html -d /home/web/komdoc -n kom *.idl kdoc -d /home/web/kdecore -u "http://www.mydomain/kdecore/" -n kdecore ~/kdelibs/kdecore/*.h -lqt OPTIONS
--stdin, -i Read the filenames to process from standard input. Ignored if filenames are specified at the command line. --format <string>, -f <string> Generate output in the specific format. This can be used many times to generate documentation in multiple formats. The default format is "html". See the OUTPUT FORMAT OPTIONS section for a list of available formats. --outputdir <path>, -d <path> Write output in the specified path. --url <url>, -u <url> The URL which will be used for links when cross-referencing with this library. --name <string>, -n <string> Set the name of the library being processed, eg "kdecore" If no name is set, no index file is produced. --xref <library>, -l <library> Cross-reference with the specified library. This will allow referencing of classes etc that exist in the linked library. This option can be specified multiple times. For linking to work, you need to have generated documentation for the linked library with kdoc, so that the necessary index file is produced. --libdir <path>, -L <path> Set the directory that will be used to store the index files generated for cross-referencing. This is also used to search for index files for xref. The default is $HOME/.kdoc. If multiple paths are specified, each will be searched in order of specification on the command line. Unless --liboutdir is specified (see below), the generated .kdoc file will be written to the first path specified with this option. --liboutdir <path> Set the directory where newly created xref libraries (see above) will be written. The default is the libdir. --compress, -z Compress generated KDOC index files with gzip to save space. --private, -p Document all private members. These are not documented by default. --skip-internal, -i Do not document internal members. They are documented as internal by default. --skip-deprecated, -e Do not document deprecated members. They are documented as deprecated by default. --strip-h-path Strip the path from the filenames in the output. PREPROCESSOR OPTIONS
--cpp, -P Pass each source file through the C preprocessor. Currently g++ is required for this, but this requirement will change before 2.0. Directories for inclusion in the preprocessor header search path can be specified via the -I option. --docincluded Parse files that are included by the preprocessor #include macro. This is off by default. -cppcmd <command>, -C <command> Specify the preprocessor command that will be used. The default is: g++ -Wp,-C -E All specified -I paths will be appended to the command. This option quietly enables the -P option. --includedir <path>, -I <path> Add a directory to the preprocessor's header search paths. Requires the -P option. This option can be specified multiple times. OUTPUT FORMAT OPTIONS
html Output documentation in HTML format. This is the default. latex Output documentation as a LaTeX document. man Output documentation as man pages. texinfo Output documentation in texinfo format. You must set the library name with the -n option for the output to be generated. docbook Output documentation in the DocBook SGML format. You must set the library name with the -n option for the output to be generated. check Print a report about the documentation, eg undocumented classes and functions. Output format modifiers --html-css <url> In HTML format, the stylesheet specified by this option will be used by the generated documentation. --html-cols <1, 2 ..> In HTML format, set the number of columns for the Class Index. --html-logo <image url> In HTML format, specify the logo image to display on every page. It will appear to the left of the quick links. CROSS-REFERENCING LIBRARIES FILES
*.kdoc, *.kdoc.gz These are files that contain information about a library that has been processed with kdoc. It is read for cross-referencing with other libraries when the -l option is used. The .gz extension signifies gzipped cross-reference files. kdoc is capable of reading these, and generates them when the -z option is used. ENVIRONMENT
KDOCLIBS If this is set, it is used as the default for the directory where generated cross-reference index files are saved. See also the --lib- dir option. SEE ALSO
See qt2kdoc for info on linking with the Qt docs, and makekdedoc for info on generating documentation for the KDE libraries. BUGS
Lots and Lots. Please send reports to the address kdoc@kde.org. AUTHOR
Sirtaj Singh Kang <taj@kde.org>. KDOC has a web page at: http://www.ph.unimelb.edu.au/~ssk/kde/kdoc COPYRIGHT
The KDOC tool is Copyright (c) 1998 by Sirtaj Singh Kang. KDOC is free software under the conditions of the GNU Public License. 2.0a54 2001-05-20 KDOC(1)
All times are GMT -4. The time now is 08:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy