Search Results

Search: Posts Made By: adityamahi
4,297
Posted By adityamahi
SU - in UNIX
Hi All,

I am trying to "SU - myid" in my script through root.
when I execute the script at the SU cmd, it comes to unix prompt and when I enter "exit", the script continues to execute the...
27,016
Posted By adityamahi
sending mail from perl using mailx
hi All,

i am trying to send a mail from perl using mailx.
the script runs fine if i hard code the file path which is to be attached to the mail. but when i give a variable containing the path of...
2,514
Posted By adityamahi
Accessing VSS through Perl
Hi All,

can you please let me know how to copy entire files in a directory of VSS to a local folder. i am using PERL to access the VSS.

Thanks in Advance

regards,
aditya Mahi
1,931
Posted By adityamahi
thanks a lot ... the first one worked..
thanks a lot ... the first one worked..
1,931
Posted By adityamahi
operation on a folder level
hi,
need help in writing a script in perl.
requirement :
1. Search for the files in a particular folder
2. search for a string in the file names
3. Delete the file which matches the string.
...
2,865
Posted By adityamahi
Interaction shell cmd prompt
hi ,

how do i interact with the shell prompt.
i need no. of args to be dynamic

e.g
$> type the no of args: <input from keyboard>
Enter the 1 st arg : <input from keyboard>
Enter...
12,546
Posted By adityamahi
when i use the cmd sed 's/ mahi /...
when i use the cmd

sed 's/ mahi / MAHI_123 /gi' $file >> $F1 its giving the follwing error

sed: command garbled: s/ mahi / MAHI_123 /gi

am i using it in a proper manner?
12,546
Posted By adityamahi
if i want to replace "mahi" and "MAHI" with...
if i want to replace "mahi" and "MAHI" with "MAHI_123" then how can i do it without two sed cmds how do i do it?

this is wht i did

sed "s/ mahi / MAHI_123 /g" $file >> $F1

...
12,546
Posted By adityamahi
hi manas , wht should i give in place of...
hi manas ,

wht should i give in place of <file pattern>
I am using sed "s/as/AS/g" $file >> $newfile
but the string 'as' is replaced by 'AS' in all the places. i need to replace it only for...
15,044
Posted By adityamahi
thanks a lot !!!! its working
thanks a lot !!!!
its working
3,257
Posted By adityamahi
i tried with ur solutions but i am unable to get...
i tried with ur solutions but i am unable to get it

if my file name is in $file variable and i need the file name with out the extension in one variable and the extension in another variable....
15,044
Posted By adityamahi
extracting substring from a file name
hi

i need to name a file with a substring of a another file name.

i.e. if the old filename is abc.txt , the new filename should be abc_1.txt
i should get the substring of the file name and...
12,546
Posted By adityamahi
i am actually waiting for a solution from some...
i am actually waiting for a solution from some gurus ..
i shall update once i am done
3,257
Posted By adityamahi
thanks for the help .. but i have a small...
thanks for the help ..
but i have a small problem here
actually i need to create a new file with a name similar to the old file.

i.e. if the old file is abc.txt , the new file should be...
3,257
Posted By adityamahi
pattern matching
hi pludi,

i tried with sed cmd

sed 's/ABC/abc/g' $file1

but i can see the change only on cmd prompt but the in the file ABC is not replaced with abc.
3,257
Posted By adityamahi
pattern matching
hi ,

i am trying to search for a pattern in the file and then replace the pattern.

please guide me

Thanks,
Mahi
12,546
Posted By adityamahi
file operations in shell scripting
hi All,

my query...
1.I Have to search for the files in the root directory.
2.i have to search for a pattern in all the files in the root directory and then replace them with a new pattern....
Showing results 1 to 17 of 17

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