Search Results

Search: Posts Made By: freyr
1,870
Posted By freyr
Thanks a lot for your help, evrything is OK now,...
Thanks a lot for your help, evrything is OK now, I only have the things I want in the output file.
:b: :)
2,500
Posted By freyr
Yes I did
Yes I did
1,870
Posted By freyr
File extraction without awk
Hello everybody,

Here is my problem : I cannot find a way to extract data from a particular file and more precisely I cannot extract the result of my awk script to an external file because I am...
2,211
Posted By freyr
noting appears : ./extract.sh 2010/12/02 ...
noting appears :


./extract.sh 2010/12/02
2010/12/02 :
2,500
Posted By freyr
Yes, I cannot find a solution to get the...
Yes,

I cannot find a solution to get the result in an external file using file1 > file2 on HP... :confused:
2,211
Posted By freyr
Thanks for your help. The problem is I don't...
Thanks for your help.

The problem is I don't use solaris, I am under HP-UX and I still have the same error :


syntax error The source line is 16.
The error context is
...
2,211
Posted By freyr
Thanks a lot, Unfortunately I get the error...
Thanks a lot,

Unfortunately I get the error below :


syntax error The source line is 16.
The error context is
printf >>> $7== <<< 0?"executed succesfull ":"failed...
2,500
Posted By freyr
Hi, Nawk is not functioning on HP-UX. And...
Hi,

Nawk is not functioning on HP-UX. And now I don't know what to do to have the result of my script in an external file... :confused:
2,500
Posted By freyr
HP-UX
HP-UX
2,500
Posted By freyr
Yes this is the way I wrote the script
Yes this is the way I wrote the script
2,500
Posted By freyr
Thanks but it's not OK because I wanted awk to...
Thanks but it's not OK because I wanted awk to parse Planning.csv for a certain date and have the result in another file, that's why I added f' Planning.csv > planning.txt

But the script hangs......
2,500
Posted By freyr
Hi, Below the input file ...
Hi,

Below the input file


01/12/2010;;;
Action_1;"XXXZZ24";Comment1;"Comment2"
Action_2;"XXXZZ25";Comment1;"Comment2"
Action_3;"XXXZZ26";Comment1;"Comment2"...
2,500
Posted By freyr
Problem creating file with awk
Hello,

I don't understand why the script below doesn't act the way it should :


#!/bin/sh
awk 'BEGIN{printf("Entrez la date : "); getline date < "-"}
$0 ~ date {f=1;print;next}...
2,211
Posted By freyr
Data and return code extraction
Hello everybody,

Another day another problem.

I have to create a script which collects data from 3 csv files.

I would like the script to check file1 which contains different values for the...
2,249
Posted By freyr
Thanks a lot :) :b:
Thanks a lot :) :b:
2,249
Posted By freyr
Thanks a lot for all your help. This forum is...
Thanks a lot for all your help. This forum is really good and very helpful.

Can you please tell me what is the signification of all this :

FNR==NR {for(i=1;i<=NF;i++)f2[$i];next}

I know FNR...
2,249
Posted By freyr
Sorry : File 1: 01/12/2010;;;;;;;;;;; ...
Sorry :

File 1:

01/12/2010;;;;;;;;;;;
;Action_1;; Comment;Comment;;;;;;"File Comment";
;Action_2;; Comment;Comment;;;;;;"Exclusif";
;Action_3;; Comment;Comment;;;;;;"Not exclusif";...
2,249
Posted By freyr
Compare two files with awk
Hello,

I have a script which extracts the values from a csv file when a specific date is entered :

#!/bin/sh
awk 'BEGIN{printf("Entrez la date : "); getline date < "-"}
$0 ~ date...
4,721
Posted By freyr
Thanks a lot for all your help :) :) :) :) :) :)...
Thanks a lot for all your help :) :) :) :) :) :) :)
4,721
Posted By freyr
Again thank you. Now I have to find a way...
Again thank you.

Now I have to find a way (by myself) to get everything a little bit cleaner because the output is not very sexy.

Can you tell me what is the signification of all this :...
4,721
Posted By freyr
Thanks a lot for all your help. I currently...
Thanks a lot for all your help.

I currently use cygwin and it seems that I cannot redirect anything to an external file (???) the script is blocked and doesn't ask for a date.

Anyway again...
4,721
Posted By freyr
@Franklin52 & @danmero : I greatly appreciate...
@Franklin52 & @danmero : I greatly appreciate your help

Now everything seems to be more or less OK but How can I redirect the output to a file ?

Thanx again
4,721
Posted By freyr
Thanks a lot for your help. Now I have a script...
Thanks a lot for your help. Now I have a script which is asking for a specific date.

But, the problem is that it reads only 2 lines (???) whereas I have many for a specific date :...
4,721
Posted By freyr
How to extract data from csv file
Hello everybody,

Here is my problem, I don't know anything about shell programming and my boss is actually asking me to develop a shell script in order to get values in a csv file from a specific...
Showing results 1 to 24 of 24

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