12-23-2011
I agree with vgersh99. I believe that the way the data sample has been posted into the original post has introduced more extra line terminators!
The original data fault is the sort of effect you get if people cut/paste data from another Window (like from an email). It's all too common.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Does anyone know how to get these two output lines into one colon ':' separated line with some unix command? Maybe nawk. I've tried to read the nawk and awk man pages but I don't get it right. Are these commands the one to use?
Output from find command:
#
/sw/tools/matlab/7.0.1/man... (2 Replies)
Discussion started by: tonlu
2 Replies
2. UNIX Desktop Questions & Answers
I have a few lines like --
feature 1,
subfeat 0,
type 3,
subtype 1,
value 0,
--
feature 1,
subfeat 0,
type 1,
subtype 1,
value 0,
I would like to concatenate the... (1 Reply)
Discussion started by: shivi707
1 Replies
3. Shell Programming and Scripting
Does anyone know a way I can fix my file below where it has lines that are cut?
Just like the (notice the space before ms,c=PH)..
dn: cn=english,ou=Messaging,ou=lang,o=subject,t=j
ms,c=PH
which should be
dn: cn=english,ou=Messaging,ou=lang,o=subject,t=jms,c=PH
The whole text file... (5 Replies)
Discussion started by: Orbix
5 Replies
4. Shell Programming and Scripting
Hi,
I have a text file with the following contents
/C=IT/O=INFN/OU=Personal Certificate/L=Napoli/CN=Some guy
/C=IT/O=INFN/CN=INFN CA
/O=Grid/O=NorduGrid/OU=uninett.no/CN=Another guy
/O=Grid/O=NorduGrid/CN=NorduGrid Certification Authority
/C=TW/O=AP/OU=GRID/CN=Someone else... (5 Replies)
Discussion started by: kerl
5 Replies
5. Shell Programming and Scripting
Hi,
I have a file such as:
---
>contig00001 length=35524 numreads=2944
gACGCCGCGCGCCGCGGCCAGGGCTGGCCCA
CAGGCCGCGCGGCGTCGGCTGGCTGAG
>contig00002 length=4242 numreads=43423
ATGCCGAAGGTCCGCCTGGGGCTGG
CGCCGGGAGCATGTAGCG
---
I would like to concatenate the lines not starting with ">"... (9 Replies)
Discussion started by: s052866
9 Replies
6. Shell Programming and Scripting
Hi All,
I need to grep through a file for a string and print the next ten lines to a file separating the lines with a , and save it as a csv file to open it as a XL file. The 10 lines should be on a sigle row in xl.
Any suggesstions please.
Note; I dont have a GNU Grep to use -A flag.
... (6 Replies)
Discussion started by: Nani369
6 Replies
7. Programming
Hi All,
Can any one help me in finding the solution for concatenating two or more lines in a file and writing them to a temporary file.
for Example:
He is a wise student.
So he got first rank.
This is in a file i want the output as
He is a wise student so he got first rank. into a file... (3 Replies)
Discussion started by: uday.sena.m
3 Replies
8. Shell Programming and Scripting
Hello,
I would like to kindly ask you for help. I have a file with some lines in one row separated by semicolon. I need to find out, if the line I have in different variable is included in this file. e.g
I have a file foo.txt with lines
A=hello there;hello world;hello there world
In... (6 Replies)
Discussion started by: satin1321
6 Replies
9. Shell Programming and Scripting
Hi guys,
I have a file which has random records like mentioned below
emcpower28a
pci@3,03 (disk physical name)
pci@3,04
emcpower9a
pci@1,03
pci@2,03
pci@3,01
pci@4,03
there could be any number of disk names for any LUN (emc...) So, I want a solution to count disk names for its... (12 Replies)
Discussion started by: prashant2507198
12 Replies
10. UNIX for Dummies Questions & Answers
Hi. I'm new to this forum.
I am attempting to parse an Audit Log from Cognos/TM1, selecting only Event IDs of "client" which are found on the "start-tag" record. These Logs are in a pseudo-XML format but not a true XML format. I want to FTP an Audit Log File from the Cognos server to our UNIX... (7 Replies)
Discussion started by: FredAtArrow
7 Replies
LEARN ABOUT DEBIAN
wxcopy
wxcopy(1x) wxcopy(1x)
NAME
wxcopy - copy stdin or file into cutbuffer
SYNOPSIS
wxcopy [options] [filename]
DESCRIPTION
wxcopy copies stdin or filename into the cutbuffer. If no cutbuffer is specified, the data will be copied into cutbuffer 0 and the other
cutbuffers will be rotated, if present. If a cutbuffer is specified, the data is copied into that cutbuffer, and no rotation of buffers is
performed.
OPTIONS
-cutbuffer number
Specifies the number of the cutbuffer to copy data to.
-display display-name
The data will be copied in the cutbuffers of the specified display/screen.
-nolimit
Makes the normal 64kb limit check not to be performed, making the buffer attempt to grow to whatever size is required.
-clearselection
Clears the PRIMARY selection owner. In practice it means that when you try to paste the data with the middle mouse button (for exam-
ple) it will paste the data from cut buffer 0, instead of any eventually existing mouse selection.
SEE ALSO
wxpaste(1x), wmaker(1x)
AUTHOR
This man page was written by Marcelo Magallon <mmagallo@debian.org>.
Window Maker was written by Alfredo K. Kojima <kojima@windowmaker.info>.
Binary data compatibility and -nolimit stuff by Luke Kendall <luke@research.canon.com.au>.
September 1998 wxcopy(1x)