Hi
I have to create a windows batch file which will read an input file and remove "double quotes" from each line of the file.
For eg.If input file name is abcd.csv and contents is :
"asasd,123123,213213,asd"
"esfrf,dsfsdf,234324,sdfsdf"
Then the batch file should remove "" from the... (11 Replies)
Hello every body,
Kindly support me to "copy a file without remove the contents of the target file"
Thanks in advance. :)
Ahmed Amer
Cairo,Egypt (2 Replies)
Hi friends,
I have a doubt, I am not sure whether it is possible ah nu.
I am having a file(sample.txt) which contain 5 lines.
I want to remove 1st line in the file and save the file with same old name (sample.txt).
For removing 1st line i am using
sed 1d filename
But dono how to... (3 Replies)
Hi,
I have two files with below data::
file1:-
123|aaa|ppp
445|fff|yyy
999|ttt|jjj
555|hhh|hhh
file2:-
445|fff|yyy
555|hhh|hhh
The records present in file1, not present in file 2 should be writtent to the out put file.
output:-
123|aaa|ppp
999|ttt|jjj
Is there any one line... (3 Replies)
I have a text file which has blank lines. I want them to be removed before upload it to DB using SQL *Loader. Below is the command line, i use to remove blank lines.
sed '/^ *$/d' /loc/test.txt
If i use the below command to replace the file after removing the blank lines, it replace the... (6 Replies)
Hi
my requirement is that i want pull the bad records from input file and move those records in to a seperate file.
that file has to be sent via email..
any suggentions please (1 Reply)
Hello Unix board community,
I have to program a shell script, but I am a complete noob so I hope I get some help here. The assignment is as follows:
The program removes all comments regardless of formatting or language from files with specific file name extensions (php, css, js, ...).... (3 Replies)
Good Afternoon,
I start with a file named biglist.txt.
I have another file smallerlist. txt
I want to remove the lines from smallerlist.txt from biglist.txt and leave those lines that do not reside in smallerlist.txt.
Thanks !! (2 Replies)
Sorry for the weird title but i have the following problem.
We have several files which have between 10000 and about 500000 lines in them. From these files we want to remove lines which contain a pattern which is located in another file (around 20000 lines, all EAN codes). We also want to get... (28 Replies)
Hello,
I have two files of the following form. I would like to remove from File.A where the first three colum matches values in File.B to give the output in File.C
File.A
121 54321 PQR CAT
122 765431 ABC DOG
124 98765 ZXY TIGER
125 86432 GEF LION
File.B
122 765431 ABC
125 86432 GEF... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
LEARN ABOUT DEBIAN
sub::delete
Sub::Delete(3pm) User Contributed Perl Documentation Sub::Delete(3pm)NAME
Sub::Delete - Perl module enabling one to delete subroutines
VERSION
1.00002
SYNOPSIS
use Sub::Delete;
sub foo {}
delete_sub 'foo';
eval 'foo();1' or die; # dies
DESCRIPTION
This module provides one function, "delete_sub", that deletes the subroutine whose name is passed to it. (To load the module without
importing the function, write "use Sub::Delete();".)
This does more than simply undefine the subroutine in the manner of "undef &foo", which leaves a stub that can trigger AUTOLOAD (and,
consequently, won't work for deleting methods). The subroutine is completely obliterated from the symbol table (though there may be
references to it elsewhere, including in compiled code).
PREREQUISITES
This module requires perl 5.8.3 or higher.
LIMITATIONS
If you take a reference to a glob containing a subroutine, and then delete the subroutine with "delete_sub", you will find that the glob
you referenced still has a subroutine in it. This is because "delete_sub" removes a glob, replaces it with another, and then copies the
contents of the old glob into the new one, except for the "CODE" slot. (This is nearly impossible to fix without breaking
constant::lexical.)
BUGS
If you find any bugs, please report them to the author via e-mail.
AUTHOR & COPYRIGHT
Copyright (C) 2008-10 Father Chrysostomos (sprout at, um, cpan dot org)
This program is free software; you may redistribute or modify it (or both) under the same terms as perl.
SEE ALSO
perltodo, which has "delete &sub" listed as a possible future feature
Symbol::Glob and Symbol::Util, both of which predate this module (but I only discovered them recently), and which allow one to delete any
arbitrary slot from a glob. Neither of them takes perl 5.10 constants into account, however. They also both differ from this module, in
that a subroutine referenced in compiled code can no longer be called if deleted from its glob. The entire glob must be replaced (which
this module does).
perl v5.10.1 2010-11-06 Sub::Delete(3pm)