Search Results

Search: Posts Made By: mail2sant
1,192
Posted By mail2sant
file index operation in loop
i have one file which contains data like the below


DE_CODE|AXXANY|APP_NAME|TELCO|LOC|NY
DE_CODE|AXXATX|APP_NAME|TELCO|LOC|TX
DE_CODE|AXXABT|APP_NAME|TELCO|LOC|BT...
1,108
Posted By mail2sant
its not working and also i dont want to mention...
its not working and also i dont want to mention the DE CODE, directly i the command.
it should take it from the variable
eg : $1 ,$3 are the header
and $2 and $4 are the data.

i tried like...
1,108
Posted By mail2sant
Doubt on using AWK
DE_CODE|1{AXXANY}1APP_NAME|2{TELCO}2LOC|NY
DE_CODE|1{AXXATX}1APP_NAME|2{TELCO}2LOC|TX
DE_CODE|1{AXXABT}1APP_NAME|2{TELCO}2LOC|BT
DE_CODE|1{AXXANJ}1APP_NAME|2{TELCO}2LOC|NJ

i have out put file...
2,755
Posted By mail2sant
getting sql header from the script
i have the SQL as mentioned below.
i put this sql in a file and calling from the script and output of SQL
has been redirected to a file.

but when i open the sql output file i dont see the...
2,658
Posted By mail2sant
need to zip 2 GB file and send it via email
i want to zip the 2GB file
and send it via email from unix machine using uuencode.
could you please suggest whether it will possible or not
and also command to do it.
1,533
Posted By mail2sant
unix to wintel
i have to do the below thing in wintel, can someone plz explain me how to
do this ?

grep "12may2011" /home/inf/msi/*.pdf


grep "12may2011" /home/inf/msi/*.pdf | mv /home/temp/ { }
...
19,481
Posted By mail2sant
i have set /sbin but still not working .. i...
i have set /sbin
but still not working ..
i i got into /sbin and run it will work.

when i saw echo $PATH
i can see /sbin
its working for my login
but not for pseudo login
19,481
Posted By mail2sant
not able to run ifconfig
Unable to run the ifconfig in my home dir..

I did add adding /sbin and /usr/sbin in th PATH
But still unable to get that ..

Am using red hat linux

cat /etc/redhat-release
Red Hat...
2,089
Posted By mail2sant
how to read the variable indivdually from config file
how to read the variable indivdually ( line by line ) in shell script

eg :

i have the config file where contain

cat /home/user01/ilap/conf/input.conf

node.txt
node2.txt
node3.txt

...
1,205
Posted By mail2sant
Want to find the stdout for the partiuclar user login for past 12 hrs.
Want to find the stdout for the partiuclar user login for past 12 hrs.

Say for eg : user login id is teladm
And the host name is sys22prod

I want to see the stdout for that user id in that...
1,484
Posted By mail2sant
to find the size of directories
Hi,

how to know the size of the files in the directory, exclusing the subfolder. ?

i tried du -h
du -sk
du -k

but its not giving..
4,144
Posted By mail2sant
#!/bin/sh ls -ltr /home/data/log/ | `awk...
#!/bin/sh


ls -ltr /home/data/log/ | `awk -vd=`date +"%b"` ' $6==d { system("cat " $NF " >> /home/data/singlefile" ) }'`





=============

getting the below error


Usage: awk...
4,144
Posted By mail2sant
i wanted to put this inside the script but am...
i wanted to put this inside the script
but am getting the below error for that


sage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--]...
4,144
Posted By mail2sant
want to concatenate multiple files based on the rest of ls -lrt
uadm@4132> ls -lrt
-rw------- 1 uadm uadm 3811819 Jun 6 04:08 data_log-2010.05.30-10:04:08.txt
-rw------- 1 uadm uadm 716246 Jun 13 01:38 data_log-2010.06.06-10:04:08.txt
-rw------- 1 uadm uadm ...
3,514
Posted By mail2sant
i know the algotham.. but i want the specific ...
i know the algotham..
but i want the specific grep or awk command clearly
so that i can combine the montly files
3,514
Posted By mail2sant
want to combine multiple file into one
Below are the list of files I have
I want to consolidate the monthly log in the one file

Eg : all the july log to be moved to log_july_full.txt inside the script


Path :...
1,522
Posted By mail2sant
want to read variable for the file
Hi,

i have one file which has list of data like this

xemp 42
yeet 87
wax 223
dyne 442


i want to read each of in for loop from the script
can you give me syntax

Use code tags,...
3,531
Posted By mail2sant
$? and $# means
what exactly $? and $# means ?
1,083
Posted By mail2sant
regarding the script output in the mail.
In a script I have the varliable , which holds the string
V="some string"
I am redirecting the value to a mailfile, which sends the mail in text form in the message box of the mail.
I want to...
2,718
Posted By mail2sant
i have to do one more thing. i have...
i have to do one more thing.

i have directory structure

/home/ncs/payload/logs

in that i have directories like
payload1
payload2
payload3
payload4
payload5

inside this each payload...
2,718
Posted By mail2sant
Auto delete the folder
Hi,

i have the directory structure

directory /home/ncs/controller/logs/

in this path i have following directories

cl03032010
cl04032010
cl05032010
cl06042010

i want to delete the...
3,662
Posted By mail2sant
how to check which line of the script is showing the error
how to check which line of the script is showing the error...

like -x will print each output in stdout...
but want to know exact error line trowing error..
85,026
Posted By mail2sant
How to check crontab edited date and time?
How to check when was the last time the crontab was updated and also what was the modification done ?
3,056
Posted By mail2sant
its not showing the date when linux upgraded.. ...
its not showing the date when linux upgraded..

in my machine i upgraded Red hat linux server release 5.3 on 26 feb 2010
in anywhere i am unable to see that the new version upgraded on 26th feb....
3,056
Posted By mail2sant
to check the Linux upgrade in the host
Hi,

how to check when was the linux upgrade has been done to this host.

below command show the RHEL version.
cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)
...
Showing results 1 to 25 of 100

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