Search Results

Search: Posts Made By: malaymaru
18,190
Posted By malaymaru
MV files with xargs or -exec
Hi

I need to move multiple (say 10 files) from one location to another location. My selection would be like this...

ls -ltr *.arc | head ---> Need to move top 10 files with single command...
2,891
Posted By malaymaru
Thanks a lot. Its working. - Malay
Thanks a lot.

Its working.

- Malay
2,891
Posted By malaymaru
Removing character from list line (at the end)
Hi,

I have file as shown below.

abc,
def,
abc,
xyz,

I have to remove ',' from end of last line (xyz,). How can I do that with single command? Is it possible or I have to iterate through...
33,932
Posted By malaymaru
Checking numeric value
Hi,

How can I check numeric value in shell?

I am passing one parameter (integer) and I want to restrict any other characters except 0-9.

./script xyz 10

Here 2nd parameter (10) should be...
52,667
Posted By malaymaru
Thanks a lot. It worked. Malay
Thanks a lot. It worked.

Malay
52,667
Posted By malaymaru
Remainder of x/y in shell script
Hi,

Can anyone help me with the syntax for finding out remainder of two integers.
Ex: 10/3 ... it should return 1.

Is fmod function will be helpful here? I am not able to find out usage of it....
65,853
Posted By malaymaru
But it will remove the tracefiles which resides...
But it will remove the tracefiles which resides under directoris at that location.

I want to skip this directories.

Malay
65,853
Posted By malaymaru
Need to remove files older than 30 days except directories
Hi,

I need to remove files (*.trc) which are older than 30 days from one location.

My problem is there I do not want to visit any of the directories at that location. I want to search files at...
12,401
Posted By malaymaru
TOP not working
Hi,

I am using solaris 5.8. When I am using top command with my UNIX userid it says "ksh: top: not found". Its working fine with the oracle id.

What should I do if I need to user TOP and SAR...
14,132
Posted By malaymaru
appending string to text file based on search string
Hi,

I need to append string "Hi" to the beginning of the lines containing some specific string. How can I achieve that?

Please help.

Malay
1,390
Posted By malaymaru
find command
my current directory is /home/oratest.
In the oratest directory, i have one file by the name test and one directory by the name of viv.Now under the viv directory,i have one file also by the name of...
85,837
Posted By malaymaru
Untar a TAR file at different location
Hi,

I want to UNTAR a TAR file at different location. Is it possible?
My TAR file contains the files with absolute path.

Malay
9,051
Posted By malaymaru
returning value from sqlplus
Hi,

I need to return one value from sqlplus to UNIX environment. Can anyone give me an example?

i.e. select username from v$session where sid=15;

This query will return username value which...
2,626
Posted By malaymaru
Still not working. Not identifying variables...
Still not working. Not identifying variables then.

malay
:(
2,626
Posted By malaymaru
:( Its not working. Unrecognized command:...
:( Its not working.

Unrecognized command: 353,442

Malay
2,626
Posted By malaymaru
Sed command help
Hi,

I am using variable in sed command to pickup lines between start and end lines using following command. But its giving me this error.Can someone please help me?

sed -n...
4,734
Posted By malaymaru
mailx help required
Is there anyway to send a file as an attachment to recepients?

I am using this command but it write everything in BODY part of a mail. I need it as an attachment in mail.

mailx -s "Alert:...
1,888
Posted By malaymaru
grep command help
How can I find out line number of first occurance of any string in a file?

Let us say I have to find out line number of string "Malay" in file file1 then....??

Malay
2,652
Posted By malaymaru
date command help
Hi,

How can I get previous date in unix?
For example today is 17th and I need 16th of nov in output?

O/p: Nov 16

Please help.

Malay
7,705
Posted By malaymaru
Split command
Can anyone tell me what this command will do?

split -b$SPLITSIZE - $file1 < $file2

Will it split file1 or file2? Please explain.

Malay
19,752
Posted By malaymaru
Thanks for your help vino. malay
Thanks for your help vino.

malay
19,752
Posted By malaymaru
file size check
How can I perform size check of any character file(which switch)?
For example: I have to perform certain actions if file size is not zero. How can I do that?

Is this syntax fine?

if test ! -z...
13,983
Posted By malaymaru
Can anyone correct my syntax? I am trying...
Can anyone correct my syntax?
I am trying toexecute this command from Unix prompt but not receiving any out put.

echo "oracle 15799 1 0 Oct 14 ? 2:04 oraclecrepd (LOCAL=NO)" | awk...
13,983
Posted By malaymaru
Thanks very much. Its done. Malay
Thanks very much. Its done.

Malay
13,983
Posted By malaymaru
string in reverse
Can we print any string in reverse order?

For example:
oracle 16294 1 0 Aug 11 ? 0:00 ora_reco_crepd
oracle 16276 1 0 Aug 11 ? 0:19 ora_dbw0_crepd

I need second...
Showing results 1 to 25 of 54

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