10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have this in log file /var/log/maillog
XXX YYY ZZZ :15214 I=:25 AAA BBB CCC
I need awk/sed operation on this, so that it retrieves only the first IP.
cat /var/log/maillog | sed_operation
55.66.77.88 (2 Replies)
Discussion started by: anil510
2 Replies
2. Shell Programming and Scripting
Hi,
I have a file say file1.ksh. Which has data like:
ifile $AI_SERIAL/$FILE.DAT...
ofile $AI_SERIAL/feed.dat...
My requirement is to find the count of all the lines which does not have $ after /. So i have written the code:
grep -w 'AI_SERIAL' file1.ksh | cut -d '/' -f2 | grep... (9 Replies)
Discussion started by: Kamna
9 Replies
3. Shell Programming and Scripting
Our log file looks like this:
2010-11-18 00:57:01,698 ERROR
Shipment Error Log:Error Details - Account Id:3962, PO:2710015, Line:2, File:221112901, Version:V1, Desc:Order cannot not be shipped as there are no line items in New state
2010-11-18 14:59:39,960 ERROR... (11 Replies)
Discussion started by: Deepthz
11 Replies
4. UNIX for Dummies Questions & Answers
There are two files one is shell script (sample.sh) and another is configuration file (sampl_conf.cfg)
configuration file contains one variable $FTP_HOME. the value of this variable vaires for user to user. If user is say jadoo then value is /home/jadoo/ftp/, for user1 - /home/user1/ftp. The... (4 Replies)
Discussion started by: jadoo_c2
4 Replies
5. Shell Programming and Scripting
There are two files one is shell script (sample.sh) and another is configuration file (sampl_conf.cfg)
configuration file contains one variable $FTP_HOME. the value of this variable vaires for user to user. If user is say jadoo then value is /home/jadoo/ftp/, for user1 - /home/user1/ftp. The... (0 Replies)
Discussion started by: jadoo_c2
0 Replies
6. UNIX for Advanced & Expert Users
How will retrieve for a particular months file in UNIX say for example from January to February 2008. (1 Reply)
Discussion started by: rajesh08
1 Replies
7. Shell Programming and Scripting
when I do a df -k for a particular mount i get the result like this
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ 4128448 3527496 391240 91% /
I need to extract the value 91 from this and use it in my script in an if condition. How will i do it Please advice. (8 Replies)
Discussion started by: codeman007
8 Replies
8. Shell Programming and Scripting
hi
i have a function.
parse()
{
qname="lpdma111"
qmgr="lpdma111"
qalias="lpqqali"
}
Now the requirement is i want ot get the vaues form the function
start()
{
//retireve the values from the parse function
} (5 Replies)
Discussion started by: Satyak
5 Replies
9. Shell Programming and Scripting
hi
i have a properties file and i am retrieving a value from that file.
now i want to assign the retieved value to a variable
can u please help (1 Reply)
Discussion started by: Satyak
1 Replies
10. Shell Programming and Scripting
hi
i have a cfg file,it contains
lpdma520.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FT
lpdma521.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FTREQ
lpdma522.dev.ipc.us.aexp.com=SUBMITSECUREFILEFLOW
i am retrieving the values using the function
RetrieveCfgvalue()
{
CFG_VALUE=`grep "$2="... (1 Reply)
Discussion started by: satish@123
1 Replies