Search Results

Search: Posts Made By: Jaken
1,762
Posted By Jaken
Quick listing question
Just a quick question. Is there a command that just lists the folders in a directory. I know of 'ls -p' that shows the directories with a '/' at the end. Though i would just like to have a list of...
21,749
Posted By Jaken
Thanks guys that helped a lot
Thanks guys that helped a lot
21,749
Posted By Jaken
Writing to a file within a script
Hi,

At the moment i have a script where it asks the user if they want to create a file and what to put in the file. The problem is when the script is run the user inputs the information, though...
8,628
Posted By Jaken
Semaphore
Hi,

I am looking to use a semaphore for the first time in one of my scripts. I am just wondering if there are any simple examples or tutorials around?

I am a beginner so the simpler the better...
4,980
Posted By Jaken
Hi, I tried putting: cat ./logs/*.logs...
Hi,

I tried putting:

cat ./logs/*.logs | grep "$month $day" | grep -c "$year"

But it just gives me a single numerical output, not a list of the files with a number of matches beside them.
...
4,980
Posted By Jaken
Well im putting them into variables, such as when...
Well im putting them into variables, such as when they enter day, then month followed by day number i do a grep of;

grep -c "$day $month $daynum" ....

I thought that as the daynum contains a...
4,980
Posted By Jaken
Files go on this structure 83.67.99.63 Wed...
Files go on this structure

83.67.99.63 Wed Apr 12 01:50:11 2006


Basically if the user enters the data "Wed" "Apr" and "12" i want it to count all the files with those lines in them....
4,980
Posted By Jaken
grep question
Hi,

I am currently using grep -c to scan lines for certain data. I am just wondering if you can search a specific column of a file using grep -c.

Thanks
34,411
Posted By Jaken
Hmmm, when I sorted I got this: sort: option...
Hmmm, when I sorted I got this:

sort: option requires an argument -- k
Try `sort --help' for more information.
user:~/test> man sort
Reformatting sort(1), please wait...

So I changed it to...
34,411
Posted By Jaken
Sorry, I miss typed, was quite late at nigh -_-....
Sorry, I miss typed, was quite late at nigh -_-. I meant to ask how would I go about sorting the second column of data (which are numbers) in ascending order.

I currently haven't sorted any data....
34,411
Posted By Jaken
awk sorting
Hi, I have used the following code to sort two sets of data:

awk '{printf "%10s %s\n",$1,$2}'

The first column is text and the second involves numbers. I was just wondering how i would go...
1,614
Posted By Jaken
Try using google to look for some tutorials,...
Try using google to look for some tutorials, there are quite a few out there :)
5,233
Posted By Jaken
I tried this, but it only returned one log
I tried this, but it only returned one log
5,233
Posted By Jaken
I want it in two columns, kinda the same as in a...
I want it in two columns, kinda the same as in a table format, like in my original porst.

I tried putting a "\t" in the sed, whilst this spaced out the matches, they arent all aligned in a second...
5,233
Posted By Jaken
Ah, sorry I must have missed a bit of the code,...
Ah, sorry I must have missed a bit of the code, was doing it early in the morning ¬_¬.

Is there anyway to format that so the webpages are in one colum and the seperated hits in another?

Thanks...
5,233
Posted By Jaken
It just does the same output as it does before...
It just does the same output as it does before when I use this.

The other awk one doesnt display the hits, it just displays the directory of the wepages in two columns.
5,233
Posted By Jaken
grep sorting/formatting
Hi,

I currently have many log files for different webpages inside the folder /log/. The program allows the user to enter a month and then the grep function searches for it, the command i used is...
Showing results 1 to 17 of 17

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