Search Results

Search: Posts Made By: Demosthenes
2,879
Posted By Demosthenes
Matching lines across multiple csv files and merging a particular field
I have about 20 CSV's that all look like this:
...
Forum: IP Networking 05-13-2010
2,273
Posted By Demosthenes
Missing packets between interfaces
I'm having issues with packets dropping somewhere on my firewall, between eth0 and eth2. Firewall is an Astaro box, essentially a pretty gui on top of modified sles10 using iptables.

I started...
3,358
Posted By Demosthenes
Thank you! I figured I'd missed something, but...
Thank you! I figured I'd missed something, but even having re-read everything here I somehow missed that.

In your script I see where/how the bw fits, and how I could change it for anything else...
3,358
Posted By Demosthenes
$ ls bw032210.mp4 bw042810.mp4 episodes ...
$ ls
bw032210.mp4 bw042810.mp4 episodes episodes-bak script
$ cat script
#!/bin/bash -x
for F in *.*
do mv $F "${F%.*}-00$(grep ${F%.*} episodes | cut -f3).${F#*.}"
done
$...
3,358
Posted By Demosthenes
This still gives the same result. I also...
This still gives the same result. I also attempted with a space and comma delimited file, to the same effect.
3,358
Posted By Demosthenes
Tab separated. I hadn't thought of that...
Tab separated.

I hadn't thought of that affecting it as my tests with awk always seemed to show the right data... Should I be converting it to comma or single space or what?

How can I tell...
3,358
Posted By Demosthenes
I installed gawk, as it's not available by...
I installed gawk, as it's not available by default on OS X, though I didn't notice any difference between running that command with awk vs gawk.

When I run it without the "| sh" I get the...
3,358
Posted By Demosthenes
As best as I can tell (from what I've seen in...
As best as I can tell (from what I've seen in google results at least) it would be something like the following (yes, I know I'm missing stuff):

ls -ltr | awk '{print $9}'

for $line compare to...
3,358
Posted By Demosthenes
Renaming files by matching info from a separate file
Hi All,

I could use a bit of help with this as I'm at a loss.

I have a number of files all named accordingly:

I have a separate text file that is as follows:

What I want to do is end up...
Showing results 1 to 9 of 9

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