12-11-2008
PADG_04287,PADG_02886,PADG_07699 should be in the output because PADG_02886 is
in files 1 and 2.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to delete a set of files in certain directories if there're older than a certain number of days. So I have a text file, with each line containing the directory & number of days.
The format is like this:
dirA,5
dirB,7
How do I write script to iteratively parse this text file & delete... (5 Replies)
Discussion started by: chengwei
5 Replies
2. Shell Programming and Scripting
I have a file which contains blocks of text - each block is a multi-lines text delimited by blank lines eg.
<blank line>
several lines of text
...
pattern found on this line
several more lines of text
...
<blank line>
How do you delete the block of text (including the blank lines) when... (17 Replies)
Discussion started by: gleu
17 Replies
3. Shell Programming and Scripting
I would like to know code that will delete multiple text from a comma delimited file. For example, how would the comma delimited file below delete the word 'PEST' in Perl language (previously an excel file that was converted to a csv and the last column was PEST):
1, 2,43,34, bosx,PEST
1,... (1 Reply)
Discussion started by: dolo21taf
1 Replies
4. Shell Programming and Scripting
Hi guys,
I need help:
I started receiving automatic emails containing download information. The problem is that these emails are coming in a rich format (I have no control of this) so the important information is buried under a bunch of mumbo-jumbo. To complicated things even further I need to... (10 Replies)
Discussion started by: caprica13
10 Replies
5. Shell Programming and Scripting
Can someone please assist me, I'm trying to get vi to remove all the occurences of the text in a file i.e. "DEVICE=/dev/mt??". The "??" represents a number variable. Is there a globel search and delete command that I can use?
Thank You in Advance. (3 Replies)
Discussion started by: roadrunner
3 Replies
6. Shell Programming and Scripting
Hi All,
I need a unix script to convert .csv files to .skv files (changing a comma delimited file to a semi colon delimited file). I am a unix newbie and so don't know where to start. The script will be scheduled using cron and needs to convert each .csv file in a particular folder to a .skv... (4 Replies)
Discussion started by: CarpKing
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Is there a one-liner that I can use to change a line of text into a comma delimited string?
For example, convert
user1
user2
user3
user4to
user1,user2,user3,user4Currently using while read x, although got the extra comma at the end that I have to remove manually.
Please... (5 Replies)
Discussion started by: newbie_01
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am not sure if I've posted this question before.
Anyway, I previously asked about converting lines of text into a comma delimited string. Now I am needing to do the other way around ... :( :o
Can anyone advise how is this possible?
Example as below:
Converting records/lines to... (2 Replies)
Discussion started by: newbie_01
2 Replies
9. Shell Programming and Scripting
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Apologies in advance to the moderator if I am posting this the wrong way.
I've searched and found the solution to an old post but as it is a very old post, I don't see an option to update it with additional question.
The question I have is in relation to the following post:
How to... (6 Replies)
Discussion started by: newbie_01
6 Replies
LEARN ABOUT DEBIAN
cdtool2cddb
CDTOOL2CDDB(1) User Commands CDTOOL2CDDB(1)
NAME
cdtool2cddb - convert .cdtooldb file to set of CDDB files
SYNOPSIS
cdtool2cddb [-rvx] [-d dir] [-l len] [input...]
DESCRIPTION
cdtool2cddb converts one or more .cdtooldb files to CDDB-format files suitable for using with many CD player applications. The output is a
set of files, each named for the 32-bit hexadecimal CDDB ID number of a given audio CD. These files are placed in the current directory
unless -d is specified.
OPTIONS
-d directory
Specify the output directory. This is where the 8-digit output filenames go. There will be one file for each CD definition in your
.cdtooldb file(s).
-l length
Specify the maximum line length for the output file. Comment lines may be any length, but the CDDB format specifies that data lines
must wrap at 76 characters. Thus, this is the default for cdtool2cddb, but you may change it if you wish.
-r At least one CD player application (groovycd) requires lines of its CDDB files to end with CR-LF, because they come over the network
that way. The -r option tells cdtool2cddb to output such lines; otherwise lines will end with LF only.
-v Increment the verbosity level.
-x Use an alternate identification string in the output file. If you wish to upload a CDDB file to a CDDB server via e-mail, the
server will probably check the ID string in the file to make sure it is from a "trusted" CD player application. cdtool is not
trusted, but xmcd is, so the -x option pretends we are xmcd.
FILES
~/.cdtooldb
A typical cdtooldb input file
/var/lib/cddb/misc, ~/.groovycd
Typical output directories (see -d).
SEE ALSO
cdir(1), cdown(1), cdadd(1)
AUTHOR
Peter Samuelson <peter@cadcamlab.org>
CDTOOL
10 December 2000 CDTOOL2CDDB(1)