Search Results

Search: Posts Made By: Cludgie
1,471
Posted By Cludgie
I'm connecting via SSH to an Ubuntu Server 14.04...
I'm connecting via SSH to an Ubuntu Server 14.04 LTS and bash.
1,471
Posted By Cludgie
File Extension Missing in file-$var.csv
I'm afraid this is a silly question but I can't figure it out.

I have a script like so...


echo "Enter DRDL Signature Version Number"
read DRDL_Number
mv signature_output.csv...
1,767
Posted By Cludgie
Thanks for getting back to me derekludwig, ...
Thanks for getting back to me derekludwig,

Yeah it makes sense now. The second option nails it for me and now I can add that line to the bottom of the script before connecting to the next box.
...
1,767
Posted By Cludgie
FTP Script for Multiple Files of Same Name
Hello!

I'm having a bit of trouble coming up with a script that can connect to 3 different log boxes and pull down files for that day into a single directory, where the files will all have the...
3,338
Posted By Cludgie
Both suggestions worked a treat!!! Thanks very...
Both suggestions worked a treat!!! Thanks very mych
3,338
Posted By Cludgie
Grep exact match
Hello!

I have 2 files named tacs.tmp and tacDB.txt

tacs.tmp looks like this

0
10235647
102700
106800
107200
1105700


tacDB.txt looks like this
...
1,200
Posted By Cludgie
Brilliant thanks guys, you both nailed it. ...
Brilliant thanks guys, you both nailed it.

Apologies for the lack of code tags around the data examples, I'll bear it in mind for next time.


Thanks again
Cludgie
1,200
Posted By Cludgie
Text File Manipulation
Hello,

Supposing I had a huge list as follows:


TAC manufacturer Device Type
1392600 LG D959 LG-D959TS FeaturePhone
1409700 LG V410 FeaturePhone
35150806 LG F350S FeaturePhone...
1,983
Posted By Cludgie
Nailed it!!! Thanks very much RudiC.
Nailed it!!! Thanks very much RudiC.
1,983
Posted By Cludgie
It is, sorry I failed to mention that in the...
It is, sorry I failed to mention that in the original post. My mistake
1,983
Posted By Cludgie
as a test I tried the following grep -w...
as a test I tried the following

grep -w T000001 customer_tariff_list.csv
012345678918,"T000001-A00220"

The above is the only entry for anyone with this old tariff on the system, but as you can...
1,983
Posted By Cludgie
Thanks for the quick response RudiC. I tried...
Thanks for the quick response RudiC. I tried using grep -xc, but it still caught T0001-A0001 when T0001 was the criteria. :(

I also tried your line, but it stops here:
T000001 0

Thanks
Cludgie
1,983
Posted By Cludgie
Basic grep -c Question
Hello,

I have a csv list which contains a reference and tariff code for every customer we have (~7.2 million) looking something like this:

customernumber,tariff
012345678910,T0001...
Forum: Debian 08-15-2014
3,714
Posted By Cludgie
These are some of the commands that cause IO read...
These are some of the commands that cause IO read errors. I ran them on a machine running 12.04 and they worked fine.

awk 'BEGIN { FS=","} NR == FNR{a[$0];next} $1 in a'...
Forum: Debian 08-15-2014
3,714
Posted By Cludgie
Hi, I haven't done it yet. I figured I'd...
Hi,

I haven't done it yet. I figured I'd find reviews or see what others experiences have been before I decide either way.

The errors I'm getting are IO errors, which I haven't seen before and...
2,664
Posted By Cludgie
Solved
Hello all,

I finally got it working. I used this:gawk 'BEGIN { FS=","} NR == FNR{a[$0];next} $1 in a' new_msisdn_list.csv production_list.csv > output.txt

real 0m36.061s
user 0m30.694s
sys...
Forum: Debian 08-15-2014
3,714
Posted By Cludgie
Upgrading Ubuntu Server (10.04) using do-release-upgrade
I have a small server in work, essentially a desktop with Ubuntu Server 10.04 LTS. For the first time in it's life, I've started to get errors when running scripts involving large files.

So before...
2,664
Posted By Cludgie
@achenle - The smaller reference file contains...
@achenle - The smaller reference file contains the 12 digit numeric reference for every active subscriber we have (format=000000000000). The much larger production file contains the 12 digit...
2,664
Posted By Cludgie
Incredibly inefficient cat | grep script
Hi there,

I have 2 files that I am trying to work on.

File 1 contains a reference list of unique subscriber numbers ( 7 million entries in total)

File 2 contains a list of the subscriber...
4,024
Posted By Cludgie
Thanks very much NeutronScott, that's brilliant....
Thanks very much NeutronScott, that's brilliant. This seems to have the logic I'm looking for, only it's returning "touch: invalid date format `201207292000'." Yet, if I enter in this date for 1...
4,024
Posted By Cludgie
You'll need to forgive my lack of knowledge. Only...
You'll need to forgive my lack of knowledge. Only been doing this for a few months.

My understanding of

touch -t $(date -d "2012-07-24 + $i day" "+%Y%m%d%H%M%S") filename

touch updates the...
4,024
Posted By Cludgie
Thanks for the replies. I should probably...
Thanks for the replies. I should probably mention, that I'm completely new to this.

neutronscott:

I've tried to add your suggestion to mine, but can't seem to get it to work. It seems to spew...
4,024
Posted By Cludgie
Thanks for the suggestion Corona688. Can you...
Thanks for the suggestion Corona688. Can you suggest how I automate this for 1500+ files in multiple directories of their own, as above?

Thanks
Cludgie
4,024
Posted By Cludgie
Touch Challenge
I've been given a directory full of subdirectories full of logfiles of the same name:

/logfiles/day1/file1/blockednodes.csv
day1-14
file1-48

The above is the actual directory structure for 14...
Showing results 1 to 24 of 24

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