Search Results

Search: Posts Made By: Jaymz
1,333
Posted By Jaymz
so if I want to look inside all files in the...
so if I want to look inside all files in the current directory I would just use a * wildcard instead of 'logfile' right?
1,333
Posted By Jaymz
Log parsing
I have a directory with daily logs that have records like this:

Date: 04/17/13 Time: 09:29:15
IP: 123.123.123.123
URL: usr/local/file1

and I want to only count how many times each file was...
721
Posted By Jaymz
windows paths digesting
how can I process Windows paths to only get the file names out of the paths? I was trying to use basename but that didn't recognize C:\ as a valid path so it ignores those '\' delimiters.
1,510
Posted By Jaymz
ah yes! it works fine with that change :) now...
ah yes! it works fine with that change :)
now it only needs to do the file editing I mentioned in the beginning and it's all done:
C:\blabla\more blahblah\myfile1has to be replaced with:...
1,510
Posted By Jaymz
I used both corrections and now I get: line...
I used both corrections and now I get:

line 11: unexpected EOF while looking for matching `"'
line 19: syntax error: unexpected end of file
1,510
Posted By Jaymz
file looks like this: some line comment1...
file looks like this:

some line
comment1 C:\blabla\more blahblah\myfile1
comment2 C:\blabla\more blahblah\myfile2
some other line

and I need it to only show:

some line
comment1 myfile1...
1,510
Posted By Jaymz
scan and edit in bash
so assume I have a dozen files in local directory and half of them are .txt and I only want to scan these text files and go inside each of them and replace absolute paths (e.g. C:\blabla\more...
2,250
Posted By Jaymz
thanks to both of you :b:
thanks to both of you :b:
2,250
Posted By Jaymz
ctsgnb, as you see from the date, first issue was...
ctsgnb, as you see from the date, first issue was a week ago, and this new thing I have to do is a different one even though it seems similar to you :)

anyone, please ?
2,250
Posted By Jaymz
thanks, rdcwayx, both solutions worked fine. ...
thanks, rdcwayx, both solutions worked fine.

now I want to loop through both files and for each row I want to check if file1's 3th column equals file2's 4th column then append 5th column from...
2,250
Posted By Jaymz
I think I'm starting to love awk ! it's awesome :)
I think I'm starting to love awk ! it's awesome :)
2,250
Posted By Jaymz
thanks. sorry for not putting the outputs in code...
thanks. sorry for not putting the outputs in code tags as well.
where do I place an IF check to skip lines like this in file1:


joe joe (skip)
joe 123 (keep)
123 123 (skip)
2,250
Posted By Jaymz
awk for comparing two files
so have file1 like this:

joe 123
jane 456

and then file2 like this:

123 left right
456 up down
joe ding dong
jane flip flop

what I need to do is compare col1 and col2 in file1 with...
Showing results 1 to 13 of 13

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