Search Results

Search: Posts Made By: big123456
12,012
Posted By MadeInGermany
Hmm, vi should actually work. But easier is ...
Hmm, vi should actually work.
But easier is
touch myfile
or
> myfile
4,473
Posted By zxmaus
you can forward the mail to any user you like by...
you can forward the mail to any user you like by creating / populating $HOME/.forward
2,281
Posted By Peasant
You can untar without the actual copy to host : ...
You can untar without the actual copy to host :

ssh user@host "cd /existing_folder_you_wish_to_untar_to && tar -xvf -" < mytar.tar


Regards
Peasant.
5,955
Posted By RavinderSingh13
Hello big123456, IMHO I think you are...
Hello big123456,

IMHO I think you are looking for grep -l option, since it will only print Filenames which have that specific text in them, try something like:


find /tmp/ -type f -exec grep...
2,187
Posted By MadeInGermany
Quick and dirty - do not use with file names with...
Quick and dirty - do not use with file names with space or other special characters!
ls -lrt | grep " Dec 18 14:" | awk '{ print $NF }'
This gives the file names. You can use xargs to convert stdin...
2,170
Posted By vgersh99
man crontab yields (among others): The...
man crontab yields (among others):

The "sixth" field (the rest of the line) specifies the command to be run. The entire command portion of the line, up to a newline or % character,
will be...
6,986
Posted By Scott
cio does (or would if it was set). ...
cio does (or would if it was set).


rw,cio,log=/dev/hd8
6,254
Posted By ctsgnb
grep -vE...
grep -vE 'ORA-16055|ORA-16401|ORA-16040|ORA-12154' myfile
egrep -ve 'ORA-16055|ORA-16401|ORA-16040|ORA-12154' myfile
1,741
Posted By rdcwayx
yes, that's it
yes, that's it
1,353
Posted By vgersh99
In sh/ksh/bash... you 'source' your parameter...
In sh/ksh/bash... you 'source' your parameter file like so:

##This is main script############
. myparameters.sh
command1
command2
.....
....
1,873
Posted By ctsgnb
if ( grep ORA- mylogfile.log >/dev/null 2>&1 ) ...
if ( grep ORA- mylogfile.log >/dev/null 2>&1 )
then
echo "subject : RMAN in Error " >> /appli/rap.txt
else
echo "subject : RMAN OK " >> /appli/rap.txt
fi

or use grep with option -q if...
5,425
Posted By methyl
The "mail" command creates workfiles in the...
The "mail" command creates workfiles in the directory /tmp . If your mail file is very large (in you case say 50 Mb) there will not be enough space in /tmp to carry out the mail file edit with the...
5,425
Posted By zaxxon
Either you have a typo missing the l (L) in mail,...
Either you have a typo missing the l (L) in mail, or you have most probably a different, similar sounding directory in /var where your mail files are being spooled in. For the second case, you have...
4,271
Posted By
cp `ls -l | grep -v RINT | awk '{print $NF}' |...
cp `ls -l | grep -v RINT | awk '{print $NF}' | xargs` test/
Showing results 1 to 14 of 14

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