Programming :: Delete Particular Revision Of File From SVN Repos ?
Dec 23, 2010
I am using Subversion version1.2 and need one favour. I have written code to delete particular revision from SVN Repository. Unfortunately, i couldn't delete particular version from repository. Any one can response me.. how to delete?
View 6 Replies
ADVERTISEMENT
Sep 17, 2009
I am trying to delete lines of a file if they contain text that is present on another file. For example
> cat one.txt:
a
b
c
d
[code]....
I get the following output:
> ./test.sh one.txt two.txt
a
b
d
e
[code]....
View 6 Replies
View Related
Oct 13, 2010
I want to delete lines which contain the word "Fehler" but for some reason my programm isn't working:
Code: BEGIN { FS="|"
OFS="|"
SUBSEP="|"
[code]...
View 6 Replies
View Related
Apr 9, 2011
I would like to delete a single line from a file that contains many lines passing through the same values as the two parameters. Again, I would like to delete a single line and not all those that contain parameters. How can I make bash?
View 14 Replies
View Related
Oct 16, 2010
i have a file containing contents as
1 2 3
2 2 3
11 2 3
now i want to delete the line which first column content is 1. so, if i pass the parametere 1 to function delete_row. is should remove the first row as
2 2 3
11 2 3
and then write the contents in file.
View 2 Replies
View Related
Jan 26, 2010
Quote:Originally Posted by topcatI would like to know how i can write a shell script to delete a line if a particular pattern exists?E.g. I have a text file with multiple lines. Say 1000s. in the following pattern.
username@email.com:149.0.3.4:1
username1@email.com:149.0.3.4:1
username1@email.net:149.0.3.4:1
username1@email.edu:149.0.3.4:1
If the patternusername@email.com exists then the line "username@email.com:149.0.3.4:1 should be deleted from the file.I have a very similar question but I need to delete one line in a file which matches one very precise instance of a string only. Let's assume I have a file composed of thousands of lines and let's call the file chap-secrets. Let's take the following sample entries:
Code:
#USERNAME SERVER PASSWORD IP
pp pptpd blahblah *
[code]....
View 7 Replies
View Related
Apr 15, 2011
I have a file looks like the following:
digraph topology
{
"192.168.3.254" -> "10.1.1.11"[label="1.000", style=solid];
"192.168.3.254" -> "10.1.1.12"[label="1.000", style=solid];
[code]...
Order of these lines are random... So I cannot delete line #19, for example... And you can see that top four lines I want to delete are pairs. So there might be some clever way to detect the lines, if a line has both "1.9" and "1.11", then delete the line... I am new to perl language. The following is the code I have now... I think I just need to write some code inside the while loop checking if I want to delete the line $dotline before I write to a NEW file.
Code:
#!/usr/bin/perl -w
$TOPPATH = "/tmp";
$NAME = "topology";
$FILENAME = "$TOPPATH/$NAME.dot";
[code]....
View 16 Replies
View Related
Aug 9, 2009
I want to know that how can i search for a word in a file and then comment it or delete it. I know this command works.
sed 's/word/#word/'g inputfile > outputfile
But the lines in my input file are as under:
zone "abc.com" { ---- This line can be comment
type master; ----- This line repeat again and again in the file
file "abc.txt";
allow-query { any; }; -This line repeat again and again in the file
};
I want to know how can i comment a certain zone.
View 8 Replies
View Related
Jun 16, 2010
I have a file with three consecutive blank lines. I want to delete two and keep one.Also, if anyone could direct me towards a guide on regular expressions particularly as they apply to sed, I would be grateful. I am having a hell of a time figuring out the syntax.
View 8 Replies
View Related
Aug 10, 2010
I am writing a shell script to delete a file if it exists.
View 11 Replies
View Related
Sep 16, 2010
I have such a file(test.txt):
abc 123 456
abc 256 145
axd 125 225
[code]...
View 8 Replies
View Related
Nov 1, 2010
Directories(-entries) are in a EXT2 file system
managed in a singly linked list.
Delete files in the directory causes Gaps or holes to appear in
the linked list of the directory.How does a C-source code look like,
which would reorganize this list and remove the gaps or Holes.
View 5 Replies
View Related
Jun 26, 2010
I have 2 external hdd in wich I have all my files. yesterday, I have copied all the files from hdd2 to hdd1 and I want to eliminate duplicates so I used FSLint to find them,now I want to make a shell script to delete all the files/entries (read from the log file) that begin with.
View 14 Replies
View Related
Jul 16, 2011
I have 2 external hdd in wich I have all my files.... yesterday, I have copied all the files from hdd2 to hdd1 and I want to eliminate duplicates so I used FSLint to find them, now, I have a txt file that looks like this:
Code: /media/My Book/!!!MIS DOCUMENTOS/Documentos/2 sep2003-jun2009 USB/!TESIS/TESIS/TESIS CVT LABVIEW Y CODEWARRIOR/LabVIEW85RuntimeEngineFull.exe /media/My Book/HDD_Toshiba/Borrable/Pen_Drive_4GB/Tesis/Super CD de la tesis/LabView/LabVIEW85RuntimeEngineFull.exe multiplied by millions of entries...
now I want to make a shell script to delete all the files/entries (read from the log file) that begin with:
Code:
/media/My Book/HDD_Toshiba/**** Since HDD_Toshiba is the folder in hdd1 (MyBook) that contains all the files from hdd2
View 1 Replies
View Related
Feb 18, 2010
Why is there no Delete when I right click like there is with Windows in ubuntu? Pretty much everything else is there like new folder and so on Is there some way to add it? Also why when i delete something does it not ask me if I am sure that i want to delete that file?
View 6 Replies
View Related
Apr 1, 2009
Was wondering if any perl guru's could help me with a quick log file adjustment. I have a text file that looks like so (tabs and newlines are revealed so you can see what separates the data):
There are maybe 100 lines of text in this file at any given time. I need to delete all duplicate lines only looking at the first bit of text prior to the first tab. It doesn't matter which one gets deleted as long as there are no two lines that begin with that same text at the beginning before the first tab. So in this example, either the fist line "1234" or the last line "1234" would need to be deleted. I already have code in my script that opens the files - I just need the code to read the text into an array and the part that would find matches based on the above criteria, and make the deletions.
If it would be easier, I can even do a system call and use SED (v4.1.5) and/or AWK (3.1.5) instead.
View 7 Replies
View Related
Jan 13, 2010
I have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.
View 3 Replies
View Related
Jan 22, 2010
is it possible to update repository via yum command like yum install/upgrade repositries
View 2 Replies
View Related
Aug 3, 2010
When I install the texlive packages (LaTeX installation) in Mint 9 (= Ubuntu 10.04), the pdflatex module is not installed. Yet it's required for producing pdf files from LaTeX editors, for example jEdit with the LaTeX Tools plug-in. pdflatex is not in the Mint/Ubuntu repos.
View 3 Replies
View Related
Aug 8, 2011
i was trying to configure yum locally, can i copy files to any other location other than /var/ftp/pub. how to configure yum.repos.d/rhel debuginfo file.
View 2 Replies
View Related
Feb 25, 2011
For archiving purposes, I am looking for the different (Gnome, KDE, Xfce) live CD images of the last revision (9) of Etch. I want a copy of them to compare how the system and the desktop environment have evolved in the last couple of years. Actually, I would also like to have live CD images of older releases, but I don't know if they exist.
View 5 Replies
View Related
Sep 10, 2010
When i upgrade my packages with aptitude in testing, I am starting to get this error.
Also I get this from cron now and then.
View 6 Replies
View Related
Aug 6, 2010
Does any one know how to generate patch between two revision from git repo? For example, how can I get a patch between v2.31.5 and v2.29.91 of Nautilus which is at [URL], without cloning the repo to my hard disk.
View 2 Replies
View Related
Jan 21, 2011
I recently started shell programming and my task now is to do a menu display.Currently i am stuck whereby user will input both title and author and it will delete it.
Do i have to use sed command?
View 4 Replies
View Related
Dec 19, 2010
I'm looking for an application which does what is commonly termed as Revision Control (RC). Here is the scenario: I have a directory holding numerous files and subdirectories, all belong to a project I work on. I routinely edit/update some files and wish to record `snapshots' of the entire directory so I can compare different revisions. Of course I can store a tarred version of the directory everytime I change something but this is immensely inefficient. So What I would like is to `upload' a snapshot into an archive file everytime I change something and then being able to `download' a snapshot later (for comparison/backup). Only I work on the project and I use a single machine so everything is local (no network connections).
My requirements are:
1. Being able to easily download/upload with one command an entire directory with all its files and subdirectories.
2. Any change to the directory induces a new version including renaming/moving files (even if their content hasn't changed)
3. The snapshot is aware of symlinks and saves them as such (and not as file they point to).
4. The files in a snapshot retain their original date when I `download' from the archive.
5. A GUI allows to easily navigate between stored snapshots and see which changes occurred.
View 4 Replies
View Related
Jul 23, 2010
Is there any way in cvs to check in a change without incrementing the revision number?
I know you can specify the revision number, but I'm under the impression that if you specify a revision that exists, it increments .1 to the right.
So if current revision is 1.2 and i specify -r 1.2 it will make the revision 1.2.1
View 1 Replies
View Related
May 4, 2011
Impossible to install the Lotus Notes 8.5.2 FP2
Code:
View 1 Replies
View Related
Jun 18, 2010
I want to do something like svn add dir1 dir2; svn ci dir1 dir2 but have it be only 1 revision. Is there a way to do this? Is this the correct way to add new folders (with contents) to the repository? We are restructuring the trunk, so I cleared it out and plan on putting these directories with their contents in it.
View 1 Replies
View Related
Oct 11, 2010
I made a live Ubuntu 10.10 USB Using Lucid's startup disk creator , but upon booting it stops at boot:>
View 3 Replies
View Related
Oct 21, 2009
Many folders within a subdirectory some of which have lots of data in and some of which have only one specific file called produkt.fil inside.I need a command to find and delete those folders that contain ONLY the file produkt.fil - if other files exist (doesnt matter what they are) then they should be left alone. Note: produkt.fil exists in all of the folders always.
View 5 Replies
View Related