Search Results

Search: Posts Made By: SAMZ
2,368
Posted By SAMZ
Thanks for the above, however what if both...
Thanks for the above, however what if both strings are variables (i.e $string1 and $string2).
2,368
Posted By SAMZ
Substitution when special charcters involved
I am trying to substitute a substring in a file and am having difficulty due to the presence of 'special characters'

I tried

sed -e "s/Bob's birthday 13/11/08 (today)/Bob's birthday 14/11/08...
1,660
Posted By SAMZ
thanks
thanks
1,660
Posted By SAMZ
bump!! edit by bakunin: Sorry to put it so...
bump!!

edit by bakunin: Sorry to put it so bluntly, but i think it is utter gall to "bump" a thread (where you have already gotten a sufficient answer, as you yourself admitted) after 11(!) hours....
1,660
Posted By SAMZ
Thanks, that works a treat. Could someone please...
Thanks, that works a treat. Could someone please explain in detail as to what is being done here for (i in t){print i ",, " t[i].

# awk '{FS=",";t[$1]+=$3}END{for (i in t){print i ",, " t[i]}}'...
1,660
Posted By SAMZ
Formatting file with Awk?
I have a file in CSV format (2 columns ID and Number of Items):

AB1 ,,10
AB2 ,,20
AB2 ,, 30
AB3 ,, 10
AB4 ,, 20
AB4 ,, 30
AB4 ,, 40
AB5 ,, 50
AB6 ,, 10
AB7 ,, 20
AB7 ,, 30...
2,090
Posted By SAMZ
anyone with an idea????
anyone with an idea????
2,090
Posted By SAMZ
OK the above works a treat thanks. This leads me...
OK the above works a treat thanks. This leads me to mu next and final issue but will need to explain a little first.

Once the first file (FIRST.CSV) has been generated with codes and ammount...
2,090
Posted By SAMZ
Doing Checks on a file
I have a process that I am trying to provide a solution for and have hit a brick wall and would like some pointers in the right direction.
Basically on a daily basis a report is automatically...
3,382
Posted By SAMZ
OK i have found this to be teh best solution thus...
OK i have found this to be teh best solution thus far, anyone with any better thoughts

if [ `cat TEST1.CSV | egrep -v '^A|^B' | wc -l` -gt 0 ]
then
echo "error message"
exit 1
fi
3,382
Posted By SAMZ
Thanks for all the above help, but let me clarify...
Thanks for all the above help, but let me clarify the need of what is required to see if anyone can assist further.
Currently as stated i have teh following file called TEST1.CSV

ID ,, VALUE...
3,382
Posted By SAMZ
anyone out there willing to help a lost man
anyone out there willing to help a lost man
3,382
Posted By SAMZ
Ok the above only tell me how many times A or B...
Ok the above only tell me how many times A or B where in there. I require it to send an error message if a C exist or otherwise its fine to continue processing file.. hope that makes more sense
3,382
Posted By SAMZ
can't seem to get the above to work could you...
can't seem to get the above to work could you explain further please
3,382
Posted By SAMZ
Checking for certain characters
Could anyone help with the following enquiry.. i have a file in the following format:

ID .... VALUE
A001 .... 100
B002 .... 200
A004 .... ...
10,616
Posted By SAMZ
sed and whitespace characters
I have teh follwing details in a file:

SmithA..... ,,400
JonesA..... ,,300
JamesA..... ,,600
BakerA ,,800
ChrisA ,,1200


the first field name is 6 characters in length always and alays...
3,606
Posted By SAMZ
everybody thankyou for your help. There is...
everybody thankyou for your help. There is nothing wrong with the nested if statements just wondered if there was a more neat way.

Following on from chachabronsons question i do not understand the...
3,606
Posted By SAMZ
Finding which file is missing
I was hoping someone ould help me with the following.

I have 2 files in a directory FILEA and FILEB. i am running a process on these 2 files but before the process can run both FILEA and FILEB...
Showing results 1 to 18 of 18

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