Search Results

Search: Posts Made By: amatuer_lee_3
3,515
Posted By amatuer_lee_3
please see other post: ...
please see other post:

https://www.unix.com/shell-programming-scripting/65606-my-menu-function-new-code-revised.html

But in reply to your questions: .hits files are numerous files populated with...
2,126
Posted By amatuer_lee_3
My menu function [new code -revised]
Below is my menu options code. It allows user to pick one of two option. I can get the first option to work, because if it is selected it just "breaks" and carries on with the script.

What i want...
2,003
Posted By amatuer_lee_3
AWK deifnition and some small code explanation
Could someone give me a quick simple explanation for the AWK command.

And also help me to explain the code i have made. I have made some general comments about it myself. I was wondering if people...
3,515
Posted By amatuer_lee_3
*********************************************...
********************************************* Thread Closed ******************************************************
3,515
Posted By amatuer_lee_3
[2]) echo " " echo "You Have Selected To...
[2]) echo " "
echo "You Have Selected To Access Index Page Information"
###What do i put here to make it go to a new set of funtions###;;



Basically if i use this...
3,515
Posted By amatuer_lee_3
My menu function
Below is my menu options code. It allows user to pick one of two option. I can get the first option to work, because if it is selected it just "breaks" and carries on with the script.

What i want...
13,582
Posted By amatuer_lee_3
Thank you very much. How the hell do you...
Thank you very much.

How the hell do you guys learn all this sooo quickly. Its mental.
13,582
Posted By amatuer_lee_3
so where about does that go into the code? (sorry...
so where about does that go into the code? (sorry i am a bit of a beginner.)
13,582
Posted By amatuer_lee_3
ok that works perfectly thank you. how do i...
ok that works perfectly thank you.

how do i sort this code so that the number of hits per page is sorted in descending order?

so the code which is this:

awk -F'[: ]' 'END {
fmt =...
3,541
Posted By amatuer_lee_3
a main menu option?
I have created a main menu in the following way:

while true; do
echo " "
echo "Main Menu: "
echo "Please Select An Option Using The Options Provided."
echo " "
echo "1 -...
13,582
Posted By amatuer_lee_3
awk -F'[: ]' 'END { fmt = "%-20s\t%s\t%s\n" ...
awk -F'[: ]' 'END {
fmt = "%-20s\t%s\t%s\n"
printf fmt, "Page:", "Hits", "Unique Hits"
for (p in h)
printf fmt, p, h[p], u[p]
}
!_[$1,$2]++ { u[$1]++ }
{ h[$1]++ }' file

Again could you...
13,582
Posted By amatuer_lee_3
could you explain this a little better for me...
could you explain this a little better for me please. i like to understand code im using :) thanks.

and how can i encorporate it into my code? do i just put it in as it is?
2,085
Posted By amatuer_lee_3
Thanks very much. Yeah i do know its spelt wrong....
Thanks very much. Yeah i do know its spelt wrong. I noticed after i clicked confirm on my username. just cant be bothered to change it.

can i refer you to my recent post:
...
13,582
Posted By amatuer_lee_3
using uniq and awk??
I have a file that is populated:


hits/books.hits:143.217.64.204 Thu Sep 21 22:24:57 GMT 2006
hits/books.hits:62.145.39.14 Fri Sep 22 00:38:32 GMT 2006...
2,085
Posted By amatuer_lee_3
There wont be any input data i just want the...
There wont be any input data i just want the function to display the results.
2,114
Posted By amatuer_lee_3
I hope that it is explained better on that thread.
I hope that it is explained better on that thread.
2,114
Posted By amatuer_lee_3
please see my...
please see my 'https://www.unix.com/shell-programming-scripting/65395-awk-output-issues.html' post.
2,085
Posted By amatuer_lee_3
Awk output issues.
I have the follwing code:


awk '{print $1}' HITS #Searches HITS file column one. Column one is filenames

awk '{print $2}' HITS | sort -n | wc -l ...
9,607
Posted By amatuer_lee_3
***************** Thread Closed...
***************** Thread Closed *******************
2,114
Posted By amatuer_lee_3
Outputting to table
I have information in a file called HITS. This file has been populated by the user entering search criteria.

the HITS file contains information:

filname.hits: 123.33.345.66 Fri Nov 26 ...
3,729
Posted By amatuer_lee_3
ok i have entered this to limit it from dates...
ok i have entered this to limit it from dates 1-31

case $DATE in [1-9]|[12][0-9]|3[01]) break;;
*) echo Invalid date, try again >&2;;
esac


but it doesnt work. it will come up to enter...
3,729
Posted By amatuer_lee_3
now that i have done it for months how do i...
now that i have done it for months

how do i restrict user inputs for date based on the month chosen?

is it:


while true; do
echo " "
echo "Enter Date of the Month (1-31): "
read...
3,729
Posted By amatuer_lee_3
Thanks Very Much !!! :)
Thanks Very Much !!! :)
3,729
Posted By amatuer_lee_3
echo " " echo "Enter the month in which you...
echo " "
echo "Enter the month in which you wish to search
(Please enter months in the form of Jan, Feb, Mar, etc...): "

read MONTH

case $MONTH in...
9,607
Posted By amatuer_lee_3
ok basically this is my script: I want...
ok basically this is my script:



I want to output "cat HITS" into a table just to show the user their results from the search. i just wanted to make the display clearer by adding column and row...
Showing results 1 to 25 of 47

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