Search Results

Search: Posts Made By: dsh007
4,569
Posted By dsh007
it is giving the same Syntax error. Ya i know...
it is giving the same Syntax error.
Ya i know there are many way of solving the problem, can you suggest me some other way.:(
4,569
Posted By dsh007
yes i did not mistaken the ls -1, and i am aware...
yes i did not mistaken the ls -1, and i am aware of the code you have written that, i was saying the problem for the 7th code of Kato.
And the error i am getting is syntax error for both for and do.
4,569
Posted By dsh007
Kato your code is working but it is not giving...
Kato your code is working but it is not giving the STCL i.e the fourth column, it is giving the other three cloumns.
And Michaelrozar 1st of all thanks for the code and explanation, i understand...
4,569
Posted By dsh007
Thanks michaelrozar17 , but i am using bash, and...
Thanks michaelrozar17 , but i am using bash, and one more thing i am not getting what does names.awk mean, it is giving a syntax error and can you explain your code if possible.
4,569
Posted By dsh007
Thanks kato for your code but sorry to say but it...
Thanks kato for your code but sorry to say but it is giving error.
the error is :
$cat names.awk having a syntax error
and if possible can you explain the code in short.
4,569
Posted By dsh007
i am sorry it was mistake, i collected the data...
i am sorry it was mistake, i collected the data from a file where data is not totally correct, and yes the 1st row is missing its middle name, but the format which i have written is exactly the same...
4,569
Posted By dsh007
Sure i will. Here is my input file let say...
Sure i will.
Here is my input file let say file1.csv
STBD_KEY ,STLC_STATE, STLC_TYPE ,FIRST_NAME, MIDDLE_NAME, LAST_NAME, STLC
IDPA, PA-612 ...
4,569
Posted By dsh007
Copying of multiple columns of one table to another by mapping with particular strings.
Hi,

I would like to copy some columns from a particular file by mapping with the string names. i am using the .csv file format.
my one file consist of 100 of columns but i want only particular 4...
13,251
Posted By dsh007
hey it worked, i got the solution..
hey it worked, i got the solution..
13,251
Posted By dsh007
creating a parameter file in the script
Here is my code which i am using wright now:
CODE
#!/bin/bash
awk ' BEGIN { FS="|";
while ( getline <"file1.txt" > 0)
a[$1]=$2
}
{
if($1 in a)
printf("%s %s Specialty...
1,451
Posted By dsh007
i m using unix operating system( bash) ...
i m using unix operating system( bash)

---------- Post updated at 11:12 AM ---------- Previous update was at 10:46 AM ----------

hey its ok i made it work by myself.....
my code is like this
...
1,451
Posted By dsh007
sorry to say but the code is not working it is...
sorry to say but the code is not working it is showing the error:
can't open the source file "|" for reading.
1,451
Posted By dsh007
mappin strings of two different file and finding the mapped string and then map other fields.
As i am new to unix so facing some problems in scripting:
here is my question:
i m having two files. 1st file say a.txt contain 3 column like

SPECIALITY|UMP_CODE|SPECIALTY_CODE
Addictive...
Showing results 1 to 13 of 13

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