Search Results

Search: Posts Made By: only4satish
2,854
Posted By only4satish
yes, i understand .....in script A, the creation...
yes, i understand .....in script A, the creation of table tempa will take 1 to 10min ....anyways.... thank you :)
2,512
Posted By only4satish
sed -e 's|//||g' -e '/^$/d' FILE1
sed -e 's|//||g' -e '/^$/d' FILE1
48,827
Posted By only4satish
try using below set in SQL query ..... ...
try using below set in SQL query .....


set pagesize 0
set lines 1000
set echo on
set heading on



(cat body; uuencode attch1 attch1; uuencode attch2 attch2; ) | mailx -m -s...
2,392
Posted By only4satish
your question is not clear, r u trying to to...
your question is not clear, r u trying to to search string hardware in given input file XXX_result.txt ? or just want to display everything in file XXX_result.txt
?
2,854
Posted By only4satish
scriptA.sh touch letsgotempfile_$(date...
scriptA.sh
touch letsgotempfile_$(date +'%Y%m%d%')



$ more scriptB.sh
#!/usr/bin/ksh
log_path='/data/mig04/logs'
timestamp=$(date +'%Y%m%d%')
while [ ! -f /letsgotempfile_$(date...
2,854
Posted By only4satish
[Solved] Running scripts in parallel
i have script A and script B, both scripts have to run in parallel, my requirement is script A create table temp1, post creating it will run fr 4 hrs , script B has to start 0nly after creation of...
1,450
Posted By only4satish
#!/bin/sh echo "please enter the directory...
#!/bin/sh

echo "please enter the directory name.........."
read dir #yu have t enter dirrectory as DUSTBIN


if ! [ -d "$dir" ]
then
echo " $dir is not...
2,046
Posted By only4satish
Hi Mr complex, could you please let me...
Hi Mr complex,

could you please let me know how it works ?


awk '!a[$1]++' infile
8,797
Posted By only4satish
Delete logs older than 60 days
i am using HP-UX OS......

delete logs older than 60 days

find -mtime +60 | grep -i '.*log' | xargs rm

-mtime is nt available in HP-UX, pls tell me other option ?
1,615
Posted By only4satish
Find list of files modified for a given day ?
find list of files modified for a given day ?

if i have 10 files in my directory, i have modified only 5 ... how to display only modified files ?
46,867
Posted By only4satish
file=$(ls -ltr | tail -1) it does not give exact...
file=$(ls -ltr | tail -1) it does not give exact filename, disaplays other information .....file=$(ls -ltr | tail -1 | awk '{print $NF}') will give the latest modified file name.
2,557
Posted By only4satish
CMF_COMP_ELEM_GSM2_B71.WORLD_20121114130908.log ...
CMF_COMP_ELEM_GSM2_B71.WORLD_20121114130908.log 107496444 rows inserted into ALL_S1_CMF_COMP_ELEM.
CMF_COMP_ELEM_GSM3_B71.WORLD_20121114130908.log 110729006 rows inserted into...
8,770
Posted By only4satish
@bipin ......you are awesome ....... thanks
@bipin ......you are awesome ....... thanks
8,770
Posted By only4satish
thanks subramanian :) if i want to attach...
thanks subramanian :)

if i want to attach 2 text files then ?
8,770
Posted By only4satish
Mailx with attachment and message body
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?

here body file contains message, it should display in email, please help

i am...
6,290
Posted By only4satish
print lines between <pattern1> and <pattern2>. ...
print lines between <pattern1> and <pattern2>.

assuming pattren 1 is 'select'
pattern 2 is 'from'

a crude way of printing the lines between pattern1 & pattern2


v1=$(grep -n 'select' ...
20,729
Posted By only4satish
@Don , thanks a ton
@Don , thanks a ton
2,557
Posted By only4satish
@pamu, its working is * does not take...
@pamu, its working


is * does not take . ?

why we need to have *.*. ?
2,557
Posted By only4satish
awk using sub , filtering textfile
i have text file as below


CMF_COMP_ELEM_ GSM2_B71.WORLD_20121114130908.log 107496444 rows inserted into ALL_S1_CMF_COMP_ELEM.
CMF_COMP_ELEM_ GSM3_B71.WORLD_20121114130908.log 110729006...
20,729
Posted By only4satish
@bala cat t1 CMF_COM_ELEMENT_log ...
@bala

cat t1

CMF_COM_ELEMENT_log 68715079 rows inserted into ALL_S1_CMF_COM_ELEMENT.
CMF_COM_ELEMENT1_log 68715 rows inserted into ALL_S1_CMF_COM_ELEMENT1.
CMF_COM_ELEMENT2_log 68715...
20,729
Posted By only4satish
lets say if i have file as below cat...
lets say if i have file as below

cat sample.txt
satish
/rakesh/
sandhya
/sandeep/


i have to replace /rakesh/ with rakesh, how can i do it with sed, i tried below code but its throwing...
1,798
Posted By only4satish
sed command escaping backslash "/"
Hello friends/'unix experts',

i have a file as below


cat sample.txt

satish
/rakesh/
sandhya
/sandeep/


i have to replace /rakesh/ with rakesh, how can i do it with sed, i tried...
20,729
Posted By only4satish
@cts could you please explain the below...
@cts

could you please explain the below code


sed 's/ / "/2'


need to know the significance of 2, will it look for 2ns field with delimiter
6,543
Posted By only4satish
i tried its throwing error, marked in red ...
i tried its throwing error, marked in red


#!/bin/sh
echo " Enter your choice to continue y/Y OR n/N to quit "
read A
if [ [ "$A" = "y" || "$A" = "Y" ] ]
then
echo " user requested to...
20,729
Posted By only4satish
if i have a file as below, how can i get below...
if i have a file as below, how can i get below output, by using awk


cat t1

CMF_COM_ELEMENT_log 68715079 rows inserted into ALL_S1_CMF_COM_ELEMENT.
CMF_COM_ELEMENT1_log 68715 rows...
Showing results 1 to 25 of 62

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