10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I have a file with a list of bunch of IP addresses from different VLAN's . I am trying to find the list the number of each vlan occurence in the output
Here is how my file looks like
1.1.1.1
1.1.1.2
1.1.1.3
1.1.2.1
1.1.2.2
1.1.3.1
1.1.3.2
1.1.3.3
1.1.3.4
So what I am trying... (2 Replies)
Discussion started by: new2prog
2 Replies
2. Shell Programming and Scripting
Hi!
I just want to count number of files in a directory, and write to new text file, with number of files and their name
output should look like this,,
assume that below one is a new file created by script
Number of files in directory = 25
1. a.txt
2. abc.txt
3. asd.dat... (20 Replies)
Discussion started by: Akshay Hegde
20 Replies
3. Shell Programming and Scripting
Hi,
I am just new to scripting but got to write a complex scipt please help. i need a shell script which can check the list of data listed in a txt doc and see if they belong to any of the groups that are listed in other list file.... (5 Replies)
Discussion started by: draghun9
5 Replies
4. Shell Programming and Scripting
Hi all,
I have a directory in which files are formed daily at certain time.files have certain naming convention for ex ..
File1TTT.DATddmmyyyyhrsminsec
File2TTT.DATddmmyyyyhrsminsec
I want to take their line count when they are formed and mail that line count.
Please help how to... (2 Replies)
Discussion started by: ammbhhar
2 Replies
5. Shell Programming and Scripting
Hi,
I have created one shell script in which it will count number of "~" tilda charactors from each line of the file.But the problem is that i need to count each line count individually, that means. if line one contains 14 "~"s and line two contains 15 "~"s then it should give an error msg.each... (3 Replies)
Discussion started by: Ganesh Khandare
3 Replies
6. Shell Programming and Scripting
Dear Experts,
I have to count the number of AddressRecords formed in bbc.xml file using unix script file. For example: for below pasted file, I need to write an output to a log file as "No. of Address Records Created=4".
Snippet of bbc.xml:-
<?xml version="1.0" encoding="UTF-8" ?>
-... (1 Reply)
Discussion started by: phani333
1 Replies
7. Shell Programming and Scripting
hello everyone,
I'm trying to learn some scripts but i cant get my head around two of them.
1. how can i write a script that will count the number of times a particular word is used in file?
2. how can i make a script that will take me to a web page from unix?
if anyone could help it... (3 Replies)
Discussion started by: BigTool4u2
3 Replies
8. Shell Programming and Scripting
Hi All,
OS:AIX 5.3 64 bits
I would like the below script to send alert mail with the message - "Standby logs falling behind Primary" to xyz@yahoo.com
Script
=====
#!/usr/bin/ksh
#-----------------------------------------------------------------------------
# Use SQL*Plus to query... (1 Reply)
Discussion started by: a1_win
1 Replies
9. Shell Programming and Scripting
Hi All,
OS:AIX 5.3 L
My shell script using ssh remains connected at primary site and ssh doesn't get disconnected.What should be typed and where in the shell script below to do it.
Shell script
========
#!/usr/bin/ksh
v_standby=`sqlplus -s /nolog <<END
@standby.sql
END`
echo... (5 Replies)
Discussion started by: a1_win
5 Replies
10. Shell Programming and Scripting
Hi All,
I am using below shell script using SQL*Plus to query the MAX(SEQUENCE#) from both databases V$LOG_HISTORY view.If the STANDBY appears to be falling behind by - 2, then alert mail should be sent...
How could I achieve it with improving the below script.
#!/usr/bin/ksh
... (0 Replies)
Discussion started by: a1_win
0 Replies