Search Results

Search: Posts Made By: nmattam
1,406
Posted By nmattam
perl split and add new line
HI disedorgue,

Thanks for your reply. Is there a way i can redirect my output to a csv file as:

DEFECT ID Status: Files Mod
20222 Testing File1 ...
1,406
Posted By nmattam
Perl split and add new line
Hi All,

I find the below code printing the output of a particular field in same line, which i want it to be printed on a new line.
---CODE START---
foreach $defectRec (@outLs) {
...
1,046
Posted By nmattam
Pop up messages on executing a keyword
Hey there,

I have the below situation, hope you guys should help me. When i type a keyword on command line, the console should return me some information that i already have.
Say, i give the...
1,794
Posted By nmattam
Password Protection using Term::ReadKey
Hi Friends,

I execute a perl script with password as input but i wish not to print the password when i give the input. Instead when i provide the password it could be shown as "****" instead of...
7,466
Posted By nmattam
Compare files in a directory
Thanks for help rdcwayx. I find this when executing the command.

diff: file: No such file or directory
diff: avail_logs1/departed_employee_views.2011_week14: No such file or directory
diff:...
7,466
Posted By nmattam
Compare files in a directory
Hi rdcwayx, Just tried with the code you have given. I can get the file list excluding the latest 2 files as i expected using `ls f* |sort -rn |sed '1,2d' `
. I am not sure how the diff is done on...
7,466
Posted By nmattam
Compare files in a directory
Hi friends, can anyone help me comparing files in a directory. I have files f1, f2, f3, f4, f5, f6, f7, f8 in a directory each created on a daily basis as f1 on day1, f2 on day2, f3 on day3, f4 on...
2,908
Posted By nmattam
Perl split and join
pludi,

Your solution works good for me. I would request you if the output can be "\.java \.xml". I want " " to be included in the output and not just \.java \.xml

Thanks much for the help....
2,908
Posted By nmattam
Perl split and join
Hi,

I have tried the split and join functions but stuck with unexpected results. Any help appreciated. I pass multiple values at command line like perl test.pl -type java,xml. This works good for...
5,417
Posted By nmattam
Perl exclude directories in command line
Hi,
I use find command to list all the files in a directory and its sub-directories, but the problem is to exclude certain directories during search. Can i give the directory names in command line...
1,917
Posted By nmattam
Perl int function solved
Hello, I have the below perl function int to return the integer value from the expression but it is not. I am not sure if something misses out here. Any help on this? Thanks in advance.

# Code...
4,093
Posted By nmattam
Perl Parse error
Thanks durden_tyler. I will try your suggestion too. I could fix the issue. Below is the change \$0.

my $cmd = qx{"C:\\gawk" '{print \$0 "\\\0"}' C:\file.txt > C:\file_1.txt};

5th time...
4,093
Posted By nmattam
Perl parse error
Hello there,

I em executing the following command in a perl script to append "\0" to the end of every line in a file:

###command start
my $cmd = qx{"C:\\gawk" '{print $0 "\\\0"}' C:\file.txt...
2,798
Posted By nmattam
http and https
Hi friends,

I have a local host http://ss3/cgi-bin/page/page_list.cgi running on apache webserver perfectly well. But suddenly, it stopped working and gave an error "Internet explorer Explorer...
1,450
Posted By nmattam
Host Machine not listed.
Hello everyone,
I have a perl script to list all the host machines in my development environment. The script does various other tasks apart from listing the host names in an excel output. The...
1,601
Posted By nmattam
Perl Multiple If Help
Hi Friends, i had a tough time in picking up all matching patterns. Additional lines are also picked up. Please help. The below is the input file from which a pattern is matched.

###Input File ...
6,265
Posted By nmattam
Count uncommented, blank and source lines in perl
My actual requirement was to execute a cleartool diff command on two files and the output of the diff command is shown below.

********************************
<<< file 1:...
6,265
Posted By nmattam
Count uncommented, blank and source lines in perl
Thanks karthigayan for the effort, but the result is partially correct. Commented Lines : 9 is exactly correct. Code Lines : 8 is wrong, it must pick only 6 lines from the example i had given. Empty...
6,265
Posted By nmattam
Count uncommented, blank and source lines in perl
Hi friends, I am working on a perl script to count the commented lines, blank lines and source lines separately. Let me know if you have one. For example i have a file containing the lines:

/**
...
6,569
Posted By nmattam
Append the end of each line in a file with a given string
Hi ahmad.diab, Thanks very much for the help. This works great for me gawk '{$0=$0"\\\0" }1' infile.

Thanks again!!!
7,402
Posted By nmattam
Append a string at the end of every line in a file
Hi Friends, I have a file with many lines as shown below.
/START SAMPLE LINE/
M:\mmarimut_v6.4.0_pit_01\java\build.xml@@\main\v6.4.0_pit_a...
6,569
Posted By nmattam
Hi ahmad.diab, i executed the command with double...
Hi ahmad.diab, i executed the command with double quotes placed correctly, but some how during copy paste it missed. This doesnt work fine for me. \0 is not appended at the end of line.
6,569
Posted By nmattam
Append the end of each line in a file with a given string
Hi ahmad.diab, i tried gawk '{$0=$0\\0 (file://\\0) }1' infile.txt > outfile.txt but the result is not as expected. It appends a special character at the end. I am unable to copy the special...
6,569
Posted By nmattam
Thanks Ahmad.diab for a quick reply. I had tried...
Thanks Ahmad.diab for a quick reply. I had tried to escape the back slash but it didnt work for me. I am working on windows and sed doesnt work for me, so the only option is to use awk. Any...
6,569
Posted By nmattam
Append the end of each line in a file with a given string
Hi friends,

I have a file containing many lines as follows.

M:\mmarimut_v6.4.0_pit_01\java\build.xml@@\main\v6.4.0_pit_a
M:\mmarimut_v6.4.0_pit_01\ADBasicView.java@@\main\v6.4.0_pit_a

I...
Showing results 1 to 25 of 43

 
All times are GMT -4. The time now is 08:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy