Search Results

Search: Posts Made By: kekanap
1,140
Posted By kekanap
Date-Manipulation-1
Hallo Team

I can perform the task manually but i would like to automate this process. ok here goes. I have a perl script which runs every Wednesday every week and the name of the script is...
1,294
Posted By kekanap
Thank you MadeInGermany, fgrep -f FILEA...
Thank you MadeInGermany,

fgrep -f FILEA FILEB > FILEC -- somehow this does not work

awk -F, 'NR==FNR {A[$0]; next} {for (a in A) if (index($1,a)) {print; next}}' FILEA FILEB > FILEC -- this is...
1,294
Posted By kekanap
If contents of A are in B then move the common contents to C
Hallo Team,

I have 2 .csv files file A has 47600 lines and file B has 67000 lines

FILEA

SD0o9rb01-1d320ddbcc8d220f572739ebed5f58d1-v300g00
SD8bt0101-a0810bfe0e3396060126ec51b30dac0a-v300g00...
1,348
Posted By kekanap
Control Characters
Hallo Team,

I am trying to get rid of the dollar sign. I managed to remove all the other special characters but i am struggling with this one.

-bash-3.2$ cat -e...
1,883
Posted By kekanap
Sea, i guess i will have to initialize $pattern...
Sea, i guess i will have to initialize $pattern right?

so should the code be like :

SRC=Sample1.txt
PARSE=BW*20141112*.csv
OUT=/home/paxk1/test.csv
PATTERN=BW

while read pattern;do
...
1,883
Posted By kekanap
Complex grep command
Hallo Team,

I need your help and its rather urgent.
I have a file with thousands of lines. Here is a sample below:

Sample1.txt

BW235045560121114833444044@196.35.130.5...
1,355
Posted By kekanap
Compare 2 files the send output to a file
Hallo Friends,

I would like to compare two files, then write the difference between the two into output file then find a pattern then search for that pattern.

-bash-3.2$ cat...
1,417
Posted By kekanap
You guys are amazing. My solution is working like...
You guys are amazing. My solution is working like clock work thank you for helping.
This is the route that i took below:

grep "Y,Unknown scenario:BST" BW*2014* > Accntfound.csv
sed -i...
1,417
Posted By kekanap
The lines in each file differ. One file might...
The lines in each file differ. One file might have a hundred line and one file might have 800 lines.

-bash-3.2$ ll...
1,417
Posted By kekanap
If field 12 = NO then
Hallo Team,

I have thousands of .csv files with the following naming convention BW*2014*.csv. I will attach a sample for one file. This is what i would like to do:

1. If field 12 is equal to No...
1,463
Posted By kekanap
Thank you R.Singh, You are a LEGEND.
Thank you R.Singh,

You are a LEGEND.
1,463
Posted By kekanap
R.Signgh ...... no luck my friend -bash-3.2$...
R.Signgh ...... no luck my friend

-bash-3.2$ cat lack.csv >> `ls -ltr BW*|tail -1`
-bash: `ls -ltr BW*|tail -1`: ambiguous redirect
-bash-3.2$
1,463
Posted By kekanap
Akshay thank you but its not working: ...
Akshay thank you but its not working:

-bash-3.2$ ll -ltr BW*|tail -1 >> cat lack.csv
-bash-3.2$ grep -l lemontwistpax BW*2014*
-bash-3.2$ cat lack.csv
lemontwistpax
-bash-3.2$ grep...
1,463
Posted By kekanap
Inserting ouput into a file using redirection
Hallo Team,

I would like to redirect an output from a file into another file. Here are the two commands/files.

-bash-3.2$ cat lack.csv
lemontwistpax
-bash-3.2$ ll -ltr BW*|tail -1
-rw-r--r--...
1,186
Posted By kekanap
R.Singh........you are a rockster.
R.Singh........you are a rockster.
1,186
Posted By kekanap
Swapping/replacing fields
Hallo Team,

I would like to replace filed 4 and 7 with filed 39 how can i achieve this ?

-bash-3.2$ cat dip1.csv| cut -f4,7,24,36,39 -d","|sort -u...
1,110
Posted By kekanap
)(*&^% blond moment. Thanx Kamaraj ...
)(*&^% blond moment. Thanx Kamaraj

---------- Post updated at 04:12 PM ---------- Previous update was at 04:00 PM ----------

i celebrated too soon. Corona please explain how can this be...
1,110
Posted By kekanap
Blond moment : sed
Hallo Team,

I have thousands of lines and i would like to manilpute a pattern but i am getting an error:

File lo0ks like below:
...
926
Posted By kekanap
Multiple Column Calculation
Hallo Team,

I need you you help. I need to sum up all the columns in a .csv file. Lets call the file file1.csv and it looks like below:

[mind@util1-pkl MHG_201408]$ cat file1.csv...
1,226
Posted By kekanap
but how do i make sure that only field 24 is...
but how do i make sure that only field 24 is changed?
1,226
Posted By kekanap
Bulk changes using sed
Hallo Team,

I would like to change everything on field 24 that starts with

10.0.108.* to be 10.0.108.11


-bash-3.2$ cat pax1.csv|cut -f24 -d","|sort -u
10.0.108.11
10.0.108.11100...
948
Posted By kekanap
Chubler thats awesome brother. I am sorry i...
Chubler thats awesome brother.

I am sorry i have a question on top of what i asked.
i have another file called max3.csv and looks like below:
[mind@util1-pkl MHG_201408]$ cat max3.csv...
948
Posted By kekanap
Thank you RudiC, How ever the time format is...
Thank you RudiC,

How ever the time format is important. Is there a way we can keep it in the desired format hhhh:mm:ss ?

Thanking you for all the hard work and dedication.

Regards,

Pax...
814
Posted By kekanap
I re posted a new post which is clearer.
I re posted a new post which is clearer.
948
Posted By kekanap
First_File, Second_File and Final_File awk magic
Hallo Team,

I hope my explanation is clear. Please assist if you can.

max1.csv
AccountCode,AccountName,TotalCalls,TotalCallDuration,TotalCost,TotalTelkomAsIf
485554,MHG - Polmed -...
Showing results 1 to 25 of 124

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