Search Results

Search: Posts Made By: Rashid Khan
849
Posted By Rashid Khan
how to get the value of a registry using csh script.
hi,

how to get the value of a registry using csh script.

thanks.
2,696
Posted By Rashid Khan
can anyone please help me out with the block of...
can anyone please help me out with the block of script for the problem being discussed.


Thanks.
2,696
Posted By Rashid Khan
hi juzz4fun, please go through the link ...
hi juzz4fun,

please go through the link

"https://www.unix.com/shell-programming-scripting/217303-regex-split-string-write-output-another-file-2.html"

I hope you will understand what the...
2,696
Posted By Rashid Khan
I am on windows system, however use hamilton...
I am on windows system, however use hamilton shell to test and run the script.
2,696
Posted By Rashid Khan
my output file is getting generated in...
my output file is getting generated in windows(DOS) mode and contains ^M characters.

I need to open the file in unix mode so that i could invoke a command in the script itself to remove the ^M...
2,696
Posted By Rashid Khan
Open a file in UNIX mode
hi,

The function

open(OUTPUT, ">$output_filename"); #opens the file in (DOS) windows mode.

how to open the output file in unix mode.

please suggest.

thanks.
3,122
Posted By Rashid Khan
thanks.
thanks.
2,193
Posted By Rashid Khan
bingoo!!!! Successfully copied the files...
bingoo!!!!

Successfully copied the files with some modifications in the code.

I want to zip the folder($folder) and delete "scratch" once scratch.zip is created.

Here is the code


...
2,193
Posted By Rashid Khan
still the .libs are not getting copied in the...
still the .libs are not getting copied in the "$folder".

"@filename = split(/\\/,$file);"

we don't need to split "$file" beacuse that is not required.
1,753
Posted By Rashid Khan
hi pikk45. sorry for the multipost. I am...
hi pikk45.

sorry for the multipost. I am facing problems in copying the files. Could you please assist me in that.

thanks.
1,753
Posted By Rashid Khan
Thanks for the reply, however the code is unable...
Thanks for the reply, however the code is unable to serve the purpose.

let me breif you.

I have a file which contains the following:

E:\gtmproj\script\i486_nt\obj\check_geomtools.exe:...
1,753
Posted By Rashid Khan
Copy an array to a newly created directory
hello everyone,

I am new to perl script and trying to develop a script as follows.

I am trying to Create an array for storing all file names. I am trying to copy $libs[1] into "scratch"....
2,193
Posted By Rashid Khan
i am unable to copy the files could you please...
i am unable to copy the files could you please help me out with the code..
2,193
Posted By Rashid Khan
I am not done yet with it.:) please have a...
I am not done yet with it.:)

please have a look.

#!/usr/bin/perl

use File::Copy;

$my_file = "makefile";
open(HANDLE,"<$my_file");


while(<HANDLE>)
{
...
2,193
Posted By Rashid Khan
I have successfully completed upto the third step...
I have successfully completed upto the third step as per your understanding. :)

Actually i have come across a new issue i.e. after splitting the paths, value[1] has to be copied to the newly...
2,193
Posted By Rashid Khan
yes you are right..
yes you are right..
2,193
Posted By Rashid Khan
How to grep a pattern in perl?
hello Everyone i am a newbie.

i have a file which contains the following


E:\gtmproj\script\i486_nt\obj\check_geomtools.exe: o:\portsrc\spg\system_1\i486_nt\advapps\TK-2\objmt\winclockmtq.lib...
1,020
Posted By Rashid Khan
Thanks hadewych for the reply. Since i am new to...
Thanks hadewych for the reply. Since i am new to perl script therefore unable to get the script.

Could you please help me out with an easy script.

thanks.
1,020
Posted By Rashid Khan
Please help with perl script
please help me with a regular expression to check,

1) if "check_geomtools.exe" is present in the path and then check if the string ends with ".lib"

2) if returns true, a command should be there...
899
Posted By Rashid Khan
thanks for the reply, however the regular...
thanks for the reply, however the regular expression doesnt works.

i need to check,

1) if "check_geomtools.exe" is present in the path and then check if the string ends with ".lib"

2) if...
899
Posted By Rashid Khan
Help with perl script
Please suggest a regular expression to match "check_geomtools.exe:" and check if the file contains ".lib" in the entire path.

The string is as follows:
...
2,349
Posted By Rashid Khan
its perl...
its perl...
2,349
Posted By Rashid Khan
How to validate user's input..?
$Input_filename=$ARGV[0];

if (!-d $Input_filename && ! -e $Input_filename)
{
print "USAGE: Please enter '$ABCD/def/dsed.txt' as an arguement \n";
exit;
}



1. Input Is suppose to be...
2,067
Posted By Rashid Khan
How to display information of the script while its running?
how to display the messages on screen IN PERL such as "

1. Entering while loop" if the script enters a while loop.

2. Checking FILENAME. etc...

3. Print statement is also not helpful....
1,112
Posted By Rashid Khan
hi busyboy... That '$$' was a typing...
hi busyboy...

That '$$' was a typing mistake.

thanks for the code its working fine....

:) :b:
Showing results 1 to 25 of 35

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