Search Results

Search: Posts Made By: CamTu
4,780
Posted By CamTu
Print only certain lines from a text file
Hi all,

I have a text file and I want to clean up the file by only print those lines start with the date. Is there anyway I can do that?


[?25h[?4l[?1l[?3h[?3h
...
6,296
Posted By CamTu
filter out certain column from a file
Hi all,

I have this file, how can i remove the ID Number and Cardholder Name from the file ?


[?25h[?4l[?1l[?3h[?3h
...
5,353
Posted By CamTu
Thanks vgersh99!!! CT
Thanks vgersh99!!!
CT
5,353
Posted By CamTu
so there is no way i can remove those? CT
so there is no way i can remove those?

CT
5,353
Posted By CamTu
vgersh99, That works for only the first line...
vgersh99,

That works for only the first line in the file, but those last lines still there. I want those to be remove also (those that in bold in the first post):


0001340 ...
5,353
Posted By CamTu
here is the results from "od -c myfile" ...
here is the results from "od -c myfile"


0000000 033 ( B 033 [ ? 2 5 h 033 [ 2 J 033 [ ?
0000020 4 l 033 [ ? 1 l 033 [ 0 m 033 [ 1 ; 2
0000040 ...
5,353
Posted By CamTu
remove extra lines in the file
Hi,

I have some files, with some extra lines in weird characters on the top and bottom of the. I want to get rid of those line. Is there a way I can do that?

example of the input file. I...
26,093
Posted By CamTu
Thanks vgersh00! The split works CT
Thanks vgersh00!
The split works

CT
26,093
Posted By CamTu
the split function won't work ? What is the 1...
the split function won't work ?
What is the 1 stand for?

Thanks

CT
26,093
Posted By CamTu
Split a field in awk script
Hi all,

I have a field in the line, let's say argument $6, which is in the format 00.00
If i want to split the field to get rid of the "." in between of the amount, how can i do that i awk...
3,042
Posted By CamTu
muthukumar, I ran into another problem when...
muthukumar,

I ran into another problem when some different data was input, my input file look like this:


Spriden ID First Name Last Name Term Code Detail Code Amount Trans Date Description...
3,042
Posted By CamTu
Thanks muthukumar ;) CT
Thanks muthukumar ;)

CT
3,042
Posted By CamTu
reformat the file
Hi all,

I ran into this problem, hope you can help

I have a text file like this:

Spriden ID First Name Last Name Term Code Detail...
7,933
Posted By CamTu
hey guys, Thanks alot.....;) CT
hey guys,

Thanks alot.....;)

CT
7,933
Posted By CamTu
zazzybob, Thanks for your response, that's...
zazzybob,

Thanks for your response, that's exactly what i am looking for;)
But i was just wondering, if i want the output in the actual position of these row within the output file, what is the...
7,933
Posted By CamTu
reformat the output from "diff" command
Hi all,

I use the diff command and got the output:



$> diff -e file1.txt file2.txt
15a
000675695 Yi Chen Chen 200520 EASY 50 2/28/05 0:00 SCAD Debit Card Charge
.
12a...
31,622
Posted By CamTu
hey vgersh99, How do i put this comand in...
hey vgersh99,

How do i put this comand in cron:

comm -13 file1.txt file2.txt > file3.txt

since the "comm -13" has a space in between the command I am not sure how to put it. I tried to put...
31,622
Posted By CamTu
;) Thanks.....!!! CT
;) Thanks.....!!!

CT
31,622
Posted By CamTu
vgersh99, Thanks for all your help...
vgersh99,

Thanks for all your help thou....;), couldn't have done it with your help along the way. Prior to this, i have no clue how to read those code, but i am getting better at it now so give...
31,622
Posted By CamTu
000725010 Andrew Clelland 200520 EASY 100 2/25/05...
000725010 Andrew Clelland 200520 EASY 100 2/25/05 0:00 SCAD Debit Card Charge
000651300 Deanna Cope 200520 EASY -20 2/25/05 0:00 Payment for PTIC


i did add the code: ($9 $10 $11...
31,622
Posted By CamTu
It only prints the "V2", the rest of them are not...
It only prints the "V2", the rest of them are not print
Thanks

CT
31,622
Posted By CamTu
hey vgersh99, Need your help again;) ...
hey vgersh99,

Need your help again;)

Here is my data, if i only want it to print those line where the 6th argument is positive and the last argument is "Debit Charge"

...
31,622
Posted By CamTu
I tried that but didn't seem to work. this...
I tried that but didn't seem to work.

this is the command i used:

comm -13 file1 file2 > easy.txt

However, it doesn't seem to give me the right results even with the "comn -13 file1 file2"...
31,622
Posted By CamTu
hey vgersh99, I got the automate fpt stuffs...
hey vgersh99,

I got the automate fpt stuffs work now, but i used the software and wrote a script to run from that software on my window. Then the remote path is /optim/db/results and the local...
31,622
Posted By CamTu
I would think the local is S:\ID_CARD, and the...
I would think the local is S:\ID_CARD, and the remote is /optim/db/results

CT
Showing results 1 to 25 of 46

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