06-17-2013
Is /mnt/svn embedded in a longer string or is it the entire field? If it is embedded, do you want to remove the entire string or just the part /mnt/svn? If just the part, above solution will fail, as it will remove the entire field.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello!
I am writing a program to run through two large lists of data (~300,000 rows), find where rows in one file match another, and combine them based on matching fields. Due to the large file sizes, I'm guessing AWK will be the most efficient way to do this. Overall, the input and output I'm... (5 Replies)
Discussion started by: Michelangelo
5 Replies
2. Shell Programming and Scripting
Hi folks,
Lets say I have the following text file:
name, lastname, 1234, name.lastname@test.com
name1, lastname1, name2.lastname2@test.com, 2345
name, 3456, lastname, name3.lastname3@test.com
4567, name, lastname, name4.lastname4@test.com
I now need the following output:
1234... (5 Replies)
Discussion started by: domi55
5 Replies
3. Shell Programming and Scripting
Hi experts,
I need to print the first field first then last two fields should come next and then i need to print rest of the fields.
Input :
a1,abc,jsd,fhf,fkk,b1,b2
a2,acb,dfg,ghj,b3,c4
a3,djf,wdjg,fkg,dff,ggk,d4,d5
Expected output:
a1,b1,b2,abc,jsd,fhf,fkk... (6 Replies)
Discussion started by: 100bees
6 Replies
4. Shell Programming and Scripting
Dear AWK-experts!
I did get stuck in the task of combining files after matching fields, so I'm still awkward with learning AWK.
There are 2 files: one containing 3 columns with ID, coding status, and score for long noncoding RNAs:
file1 (1.txt) (>5000 lines)
... (12 Replies)
Discussion started by: kben
12 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I want to extract rows with the pattern ALPHANUMERIC/ALPHANUMNERIC in the 2nd column.
I dont wan rows with more than 1 slash or without any slash in 2nd column.
a a/b
b a/b/c
c a/b//c
d t/y
e r
f /f
I came up with the regex
grep '\/$' file
a a/b
b a/b/c
d t/y (3 Replies)
Discussion started by: jianp83
3 Replies
6. Shell Programming and Scripting
Hi
I have a file as below
<field1> <field2> <field3> ... <field_num1> <field_num2>
Trying to sort based on difference of <field_num1> and <field_num2> in desceding order and print all fields.
I tried this and it doesn't sort on the difference field .. Appreciate your help.
cat... (9 Replies)
Discussion started by: newstart
9 Replies
7. Shell Programming and Scripting
In the below I am trying to use awk to match all the $13 values in input, which is tab-delimited,
that are in $1 of gene which is just a single column of text.
However only the line with the greatest $9 value in input needs to be printed.
So in the example below all the MECP2 and LTBP1... (0 Replies)
Discussion started by: cmccabe
0 Replies
8. Shell Programming and Scripting
Hi everyone,
Given two files (test1 and test2) with the following contents:
test1:
80263760,I71
80267369,M44
80274628,L77
80276793,I32
80277390,K05
80277391,I06
80279206,I43
80279859,K37
80279866,K35
80279867,J16
80280346,I14and test2:
80263760,PT18
80279867,PT01I need to do some... (3 Replies)
Discussion started by: gacanepa
3 Replies
9. UNIX for Beginners Questions & Answers
Hi,
I have 2 tab-delimited input files as follows.
file1.tab:
green A apple
red B apple
file2.tab:
apple - A;Z
Objective:
Return $1 of file1 if,
. $1 of file2 matches $3 of file1 and,
. any single element (separated by ";") in $3 of file2 is present in $2 of file1
In order to... (3 Replies)
Discussion started by: beca123456
3 Replies
10. Shell Programming and Scripting
Trying to use awk to match the contents of each line in file1 with $5 in file2. Both files are tab-delimited and there may be a space or special character in the name being matched in file2, for example in file1 the name is BRCA1 but in file2 the name is BRCA 1 or in file1 name is BCR but in file2... (6 Replies)
Discussion started by: cmccabe
6 Replies
LEARN ABOUT DEBIAN
svn-all-fast-export
SVN-ALL-FAST-EXPORT(1) General Commands Manual SVN-ALL-FAST-EXPORT(1)
NAME
svn-all-fast-export - tool to convert svn repositories into git
SYNOPSIS
svn-all-fast-export [options] [Path to subversion repository]
DESCRIPTION
svn-all-fast-export is a tool to convert your svn repositories to git.
You will need to have a copy of your svn repository and to write some rules to specify how the conversion will be done, for instance, you
can manage how the tags and branches will be managed writing the appropriate rules. You have examples in /usr/share/doc/svn-all-fast-
export/samples
Path to subversion repository is a backup copy of the subversion repository. Note that an svn url will not work due to the undistributed
nature of svn.
OPTIONS
--identity-map
Provide map between svn username and email. You can provide a file mapping the old svn accounts to the authors names. This file must
have a line per each svn account, you can use either the svn-all-fast-export native format:
janesvnaccountname Jane Doe <jane.doe@example.com>
or the git-svn format:
janesvnaccountname = Jane Doe <jane.doe@example.com>
--revisions-file
Provide a file with revisions numbers that should be processed. This file should have one revision number per line.
--rules
The rules file that determines what goes where. See /usr/share/doc/svn-all-fast-export/samples
--add-metadata
If passed, each git commit will have svn commit info.
--resume-from
Start importing at svn revision number.
--max-rev
Stop importing at svn revision number.
--dry-run
Don't actually write anything.
--debug-rules
Print what rule is being used for each file.
--commit-interval number
If passed the cache will be flushed to git every number of commits.
--stats
After a run, print some statistics.
--svn-branches
Use the content of SVN when creating branches, Note: SVN tags are branches as well.
-h, --help
Show summary of options.
-v, --version
Show version of program.
RETURN VALUES
This program returns 0 on success, on error something else (numbers in base 10):
10 unrecognized option or missing argument
11 no rules file specified
BUGS
All matching rules need to end with a '/', else the tool will crash at some point. The only exception are the rules using the recurse-
action.
HOMEPAGE
http://gitorious.org/svn2git
SEE ALSO
http://techbase.kde.org/Projects/MoveToGit/UsingSvn2Git
AUTHORS
svn-all-fast-export was written by Thiago Macieira and Thomas Zander.
April 25, 2010 SVN-ALL-FAST-EXPORT(1)