Hi,
I have a file with many lines,
then i have following list of lines(line number 5,12,19,5,and 28) i need to replace these lines of a file with another lines as shown below these text
contains special charecter like= (/:;){}[]
Code:
Line_number Text to replace with
5 abc xyg ;, : def
12 &nbs
Hi friends,
Issue1:
I have a text file with the first line like this
Code:
#chrom start end Readcount_A Normalized_Readcount_A ReadcountB Normalized_Readcount_B Fc_A_vs_B
Hi,
I'd like to do an operation on text with a format like this
Code:
this line shall be numbered
this line shall not be numbered
this line shall also be numbered
this line shall not not be numbered
And I want an output like this
Code:
1 this line shall be numbered
this line shall not be numbered
2 this line shall also be numbered
Hi All,
I have 4 big files which contains one big line containing formatted character records, I need to format each file in such way that each File will have 95 Characters per line.
Hello
Could you please help me to find a code that can randomly select 1224 lines from a file of 12240 and make tn output with 1224 line each.
my input is txt file with 12240 lines like :
Code:
13474 999003507 0 0 2 -9
13475 9990035
Hi,
I copied the contents of a binary file into a .text file using hd (hexdump) command.
Hey, not too good at this, so I only managed a clumsy and SLOW solution to my problem that needs a drastic speed up. Any ideas how I write the following in awk only?
Code is supposed to do...
For every line read column values $6, $7, $8 and do a calculation with the same column values of every other line in the same file.
Hello ,
I have comma delimited file with over 20 fileds that i need to do some validations on. I have to check if certain fields are null and then write the line containing the null field into a new file and then delete the line from the current file.
Can someone tell me how i could go about doing this?
Code:
@scriptfiles=glob('*.txt');
foreach $file (glob('*.txt'))
{
open(my $fh, $file) or die("Unable to open '$file': $!");
while (my $line = <$fh>)
{
if ($line =~ m/(Apple|Orange|Guava)/i)
{
$Sheet->Cells($row,$col-1)-&