Search Results

Search: Posts Made By: adityamahi
4,094
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...
24,723
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,352
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,677
Posted By adityamahi
thanks a lot ... the first one worked..
thanks a lot ... the first one worked..
1,677
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,677
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,086
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,086
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,086
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...
14,365
Posted By adityamahi
thanks a lot !!!! its working
thanks a lot !!!!
its working
2,935
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....
14,365
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,086
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
2,935
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...
2,935
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.
2,935
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,086
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

 

Featured Tech Videos

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